[projects/cleanbuild] fix path to package.spec in addbr

glen glen at pld-linux.org
Thu Dec 15 14:27:45 CET 2016


commit 5135a2964e9a39f6efcf6c6702fc28b229dfd41a
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Dec 15 15:27:26 2016 +0200

    fix path to package.spec in addbr

 addbr             | 2 +-
 docker-builder.sh | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/addbr b/addbr
index b101e39..b04afa6 100755
--- a/addbr
+++ b/addbr
@@ -19,7 +19,7 @@ warn "Adding: $add\n";
 my $file = $fname;
 $file = "$ENV{HOME}/rpm/packages/$fname/$fname.spec"
 	unless -r $file;
--r $file or die;
+-r $file or die "Can't read $file";
 
 open FILE, "<", $file;
 my @in = <FILE>;
diff --git a/docker-builder.sh b/docker-builder.sh
index d88e580..798f1f0 100755
--- a/docker-builder.sh
+++ b/docker-builder.sh
@@ -49,11 +49,11 @@ while true; do
 
 	findbr=$package.findbr.log
 
-	docker exec $name cleanbuild/findbr rpm/BUILD/* cleanbuild/$buildlog > $findbr
+	docker exec $name cleanbuild/findbr 'rpm/BUILD/*' cleanbuild/$buildlog > $findbr
 
 	installed_something=false
 	while read pkg msg; do
-		./addbr $package "$pkg" "$msg"
+		./addbr rpm/packages/$package/$package.spec "$pkg" "$msg"
 		installed_something=true
 	done < $findbr
 	rm -f $findbr
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/cleanbuild.git/commitdiff/5135a2964e9a39f6efcf6c6702fc28b229dfd41a



More information about the pld-cvs-commit mailing list