From dfc59354a7e3adfb5789b60d2375d1f0c5739750 Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Wed, 19 Sep 2007 17:42:47 +0000 Subject: Only move .src.rpm files when using --move-srpm. Requested by Caio Begotti. --- BuildManager/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BuildManager/build.py b/BuildManager/build.py index 94157b3..8fed7b0 100644 --- a/BuildManager/build.py +++ b/BuildManager/build.py @@ -9,6 +9,7 @@ import thread import sys, os import time import shutil +import glob __all__ = ["PackageBuilder"] @@ -100,7 +101,7 @@ class PackageBuilder: os.unlink(pkg.file) if self.opts.move_srpm: dir = os.path.join(pkg.builddir, "SRPMS") - for file in os.listdir(dir): + for file in glob.glob(os.path.join(dir, "*.src.rpm")): move_file(os.path.join(dir, file), self.opts.move_srpm, dryrun=self.opts.dryrun) -- cgit v1.2.1