[dak/master] 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.
---
daklib/utils.py | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/daklib/utils.py b/daklib/utils.py
index 4ee00a1..25549f0 100644
--- a/daklib/utils.py
+++ b/daklib/utils.py
@@ -701,13 +701,11 @@ def send_mail (message, filename=""):
################################################################################
-def poolify (source, component):
- if component:
- component += '/'
+def poolify (source, component=None):
if source[:3] == "lib":
- return component + source[:4] + '/' + source + '/'
+ return source[:4] + '/' + source + '/'
else:
- return component + source[:1] + '/' + source + '/'
+ return source[:1] + '/' + source + '/'
################################################################################
--
1.7.2.5
Reply to: