[Treepkg-commits] r279 - branches/scratchbox/treepkg
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Apr 15 17:10:35 CEST 2010
Author: bricks
Date: 2010-04-15 17:10:34 +0200 (Thu, 15 Apr 2010)
New Revision: 279
Modified:
branches/scratchbox/treepkg/packager.py
Log:
raise a RuntimeError if the BinaryPackager can't find a changes file
Modified: branches/scratchbox/treepkg/packager.py
===================================================================
--- branches/scratchbox/treepkg/packager.py 2010-04-15 14:56:21 UTC (rev 278)
+++ branches/scratchbox/treepkg/packager.py 2010-04-15 15:10:34 UTC (rev 279)
@@ -235,7 +235,10 @@
def sign_package(self):
"""Signs the .changes file created buy the instance"""
- self.track.sign_file(util.listdir_abs(self.binary_dir, "*.changes")[0])
+ dirs = util.listdir_abs(self.binary_dir, "*.changes")
+ if not dirs:
+ raise RuntimeError("Cannot find changes File in %r" % self.binary_dir)
+ self.track.sign_file(dirs[0])
class RevisionPackager(object):
More information about the Treepkg-commits
mailing list