From d48e4be67b4efe86133bdff6a310eb3e071c9f51 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Tue, 31 Jul 2012 19:11:58 +0200 Subject: [PATCH] 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 file changed, 3 insertions(+), 5 deletions(-) diff --git a/daklib/utils.py b/daklib/utils.py index 4ee00a1c..25549f04 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 + '/' ################################################################################ -- 2.39.2