X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_unchecked.py;h=a40118d4969b8f90dbdb7252ce92355f0ab8ad35;hb=689f597c251aa4e08e0e9980e4a80c1e3172c5c9;hp=0eec1ee80d7c537a307192ea181b4787a13bf53f;hpb=3045fc0a7b134eb014533c56fd37d6cace2aa2d5;p=dak.git diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index 0eec1ee8..a40118d4 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -124,6 +124,7 @@ def usage (exit_code=0): def action(u): cnf = Config() + # changes["distribution"] may not exist in corner cases # (e.g. unreadable changes files) if not u.pkg.changes.has_key("distribution") or not isinstance(u.pkg.changes["distribution"], DictType): @@ -452,6 +453,7 @@ def process_it(changes_file): u.pkg.changes_file = changes_file u.pkg.directory = os.getcwd() u.logger = Logger + origchanges = os.path.join(u.pkg.directory, u.pkg.changes_file) # Some defaults in case we can't fully process the .changes file u.pkg.changes["maintainer2047"] = cnf["Dinstall::MyEmailAddress"] @@ -481,7 +483,7 @@ def process_it(changes_file): # Absolutize the filename to avoid the requirement of being in the # same directory as the .changes file. - holding.copy_to_holding(os.path.abspath(changes_file)) + holding.copy_to_holding(origchanges) # Relativize the filename so we use the copy in holding # rather than the original...