diff --git a/daklib/utils.py b/daklib/utils.py index 4ee00a1c263dd1bd8c484f1e0baae5a057aa3376..25549f049c95656df3b48759e83ad940f97dcb95 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 + '/' ################################################################################