X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_accepted.py;h=e53a969f48c1f35a88d292c3cb94d3ce86b3d855;hb=7f666168b375073c6d751ad47369410de713c9aa;hp=07d611d5f0bac72c2d88f48de6f7288bc94c599b;hpb=5fe4932c649053a8686d28d10314bc7ee4c104c8;p=dak.git diff --git a/dak/process_accepted.py b/dak/process_accepted.py index 07d611d5..e53a969f 100755 --- a/dak/process_accepted.py +++ b/dak/process_accepted.py @@ -183,13 +183,7 @@ def init(): if len(changes_files) > 0: utils.warn("Directory provided so ignoring files given on command line") - dir = Cnf["Dinstall::Options::Directory"] - try: - # Much of the rest of p-a depends on being in the right place - os.chdir(dir) - changes_files = [x for x in os.listdir(dir) if x.endswith('.changes')] - except OSError, e: - utils.fubar("Failed to read list from directory %s (%s)" % (dir, e)) + changes_files = utils.get_changes_files(Cnf["Dinstall::Options::Directory"]) Upload = queue.Upload(Cnf) projectB = Upload.projectB