diff options
author | Michael Scherer <misc@mandriva.org> | 2009-05-22 20:43:36 +0000 |
---|---|---|
committer | Michael Scherer <misc@mandriva.org> | 2009-05-22 20:43:36 +0000 |
commit | dc5ffeeedc94557029822c5a2455e027ca97981a (patch) | |
tree | 40fde01037041464d0029144d1454d878ccbfe90 | |
parent | 4117452de5b810861a877a6a4e751bebf97c1e01 (diff) | |
download | bm-dc5ffeeedc94557029822c5a2455e027ca97981a.tar bm-dc5ffeeedc94557029822c5a2455e027ca97981a.tar.gz bm-dc5ffeeedc94557029822c5a2455e027ca97981a.tar.bz2 bm-dc5ffeeedc94557029822c5a2455e027ca97981a.tar.xz bm-dc5ffeeedc94557029822c5a2455e027ca97981a.zip |
- show a better error message when we give a rpm instead of a src.rpm, close #33792
-rw-r--r-- | BuildManager/build.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/BuildManager/build.py b/BuildManager/build.py index 9279d17..73a1442 100644 --- a/BuildManager/build.py +++ b/BuildManager/build.py @@ -38,6 +38,9 @@ class PackageBuilder: logger.info("creating package list") for filename in self.opts.args: pkg = Package(filename, self.opts.build_log) + if pkg.type == 'rpm': + logger.info("skipping %s, not a src.rpm" % filename) + break for ignore in self.opts.ignore: if ignore.match(pkg.name): break |