X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fqueue.py;h=58a8783442f70a87281dc96ffabdadae6d4e05ae;hb=3b9822f29469b9c5c960924a6e9511a9a8e6d9bf;hp=dd654cd2d67e06162057c348b4c4e461c70a3438;hpb=26957544e0bbb7e6aa08850f9f5da178b2d1453a;p=dak.git diff --git a/daklib/queue.py b/daklib/queue.py index dd654cd2..58a87834 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -231,17 +231,6 @@ def check_valid(new): ############################################################################### -def check_status(files): - new = byhand = 0 - for f in files.keys(): - if files[f].has_key("byhand"): - byhand = 1 - elif files[f].has_key("new"): - new = 1 - return (new, byhand) - -############################################################################### - # Used by Upload.check_timestamps class TarTime(object): def __init__(self, future_cutoff, past_cutoff): @@ -364,8 +353,8 @@ class Upload(object): Load a changes file and setup a dictionary around it. Also checks for mandantory fields within. - @type: string - @param: Changes filename, full path. + @type filename: string + @param filename: Changes filename, full path. @rtype: boolean @return: whether the changes file was valid or not. We may want to @@ -1236,7 +1225,7 @@ class Upload(object): found = False # Look in the pool - for poolfile in get_poolfile_like_name('/%s' % filename, session_): + for poolfile in get_poolfile_like_name('%s' % filename, session_): poolfile_path = os.path.join( poolfile.location.path, poolfile.filename )