use --repository instead of --rpms
authorZhang Qiang <qiang.z.zhang@intel.com>
Fri, 24 Aug 2012 02:33:35 +0000 (10:33 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Mon, 27 Aug 2012 03:00:25 +0000 (11:00 +0800)
always set local repo dir as the first repo, so that build can using
local packages as higher priority to create build root.

Change-Id: Idde5ef5fdb0fdbd16ac53724484eb136782778ad

depanneur

index af30c40..f314246 100755 (executable)
--- a/depanneur
+++ b/depanneur
@@ -649,7 +649,7 @@ sub build_package {
     $ENV{'BUILD_DIR'} = $build_dir;
 
     if ( -d "$localrepo/$dist/$arch/RPMS" ) {
-        push @args, "--rpms $localrepo/$dist/$arch/RPMS";
+        push @args, "--repository $localrepo/$dist/$arch/RPMS";
     }
     foreach my $r (@package_repos) {
         push @args, "--repository $r";