提交 d48e4be6 编写于 作者: A Ansgar Burchardt

daklib/utils.py (poolify): no longer include component

The component is no longer part of the filename we store. This is needed
to allow having the same file in multiple components at the same time.
上级 058d7d21
...@@ -701,13 +701,11 @@ def send_mail (message, filename=""): ...@@ -701,13 +701,11 @@ def send_mail (message, filename=""):
################################################################################ ################################################################################
def poolify (source, component): def poolify (source, component=None):
if component:
component += '/'
if source[:3] == "lib": if source[:3] == "lib":
return component + source[:4] + '/' + source + '/' return source[:4] + '/' + source + '/'
else: else:
return component + source[:1] + '/' + source + '/' return source[:1] + '/' + source + '/'
################################################################################ ################################################################################
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册