From 38392bd63ef9ee3ea9b5d1b33f463a14523ea917 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Wed, 17 Jun 2009 11:31:58 +0000 Subject: [PATCH] abandoned files were only found when debug is on --- pisi/operations/build.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pisi/operations/build.py b/pisi/operations/build.py index 0425355e..093a0b49 100644 --- a/pisi/operations/build.py +++ b/pisi/operations/build.py @@ -997,14 +997,13 @@ class Builder: self.set_state("buildpackages") ctx.ui.info(_("Done.")) + abandoned_files = self.get_abandoned_files() #show the files those are not collected from the install dir if ctx.get_option('debug'): - abandoned_files = self.get_abandoned_files() if abandoned_files: ctx.ui.error(_('There are abandoned files under the install dir (%s):') % (install_dir)) for f in abandoned_files: ctx.ui.info(' - %s' % (f)) - raise AbandonedFilesException else: ctx.ui.info(_('All of the files under the install dir (%s) has been collected by package(s)') % (install_dir)) @@ -1023,6 +1022,9 @@ class Builder: os.environ.clear() os.environ.update(ctx.config.environ) + if abandoned_files: + raise AbandonedFilesException + return self.new_packages, self.old_packages