From: James Troup Date: Fri, 16 Jun 2006 03:59:27 +0000 (+0100) Subject: Normalize Dir::Queue::Disembargo by cd-ing into it. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=65bde83c9f0d6c25a9b0703007addf29d7efe027;p=dak.git Normalize Dir::Queue::Disembargo by cd-ing into it. --- diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index 828b695d..36b091f2 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -1140,7 +1140,12 @@ def is_unembargo (): if ql: return 1 - if pkg.directory == Cnf["Dir::Queue::Disembargo"].rstrip("/"): + oldcwd = os.getcwd() + os.chdir(Cnf["Dir::Queue::Disembargo"]) + disdir = os.getcwd() + os.chdir(oldcwd) + + if pkg.directory == disdir: if changes["architecture"].has_key("source"): if Options["No-Action"]: return 1