]> err.no Git - dak/commitdiff
Normalize Dir::Queue::Disembargo by cd-ing into it.
authorJames Troup <james@nocrew.org>
Fri, 16 Jun 2006 03:59:27 +0000 (04:59 +0100)
committerJames Troup <james@nocrew.org>
Fri, 16 Jun 2006 03:59:27 +0000 (04:59 +0100)
dak/process_unchecked.py

index 828b695dfbfdd23e6d51d55a387549a8b72ab21d..36b091f298ba42083407a12e713a972d0c54f403 100755 (executable)
@@ -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