X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=daklib%2Futils.py;h=25549f049c95656df3b48759e83ad940f97dcb95;hb=d0c59ca05415c09d05d5945f22cc3cd68363fe71;hp=4ee00a1c263dd1bd8c484f1e0baae5a057aa3376;hpb=c47d45b655bbf9e6d13d21a1ebe4b5248f5d50df;p=dak.git 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 + '/' ################################################################################