SPECS: builder - display available branches to avoid duplicating work

arekm arekm at pld-linux.org
Wed Nov 2 12:57:11 CET 2005


Author: arekm                        Date: Wed Nov  2 11:57:11 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- display available branches to avoid duplicating work

---- Files affected:
SPECS:
   builder (1.343 -> 1.344) 

---- Diffs:

================================================================
Index: SPECS/builder
diff -u SPECS/builder:1.343 SPECS/builder:1.344
--- SPECS/builder:1.343	Fri Oct 28 21:47:18 2005
+++ SPECS/builder	Wed Nov  2 12:57:05 2005
@@ -1194,6 +1194,12 @@
 	fi
 }
 
+display_branches()
+{
+	 echo -ne "Available branches: "
+	 cvs status -v "${SPECFILE}" | awk '/\(branch:/ { print $1 } ' | xargs
+}
+
 # checks a given list of packages/files/provides agains current rpmdb.
 # outputs all dependencies whcih current rpmdb doesn't satisfy.
 # input can be either STDIN or parameters
@@ -1684,6 +1690,7 @@
 			get_spec;
 			set_bconds_values;
 			display_bconds;
+			display_branches;
 			fetch_build_requires;
 			parse_spec;
 			if [ "$INTEGER_RELEASE" = "yes" ]; then
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/builder?r1=1.343&r2=1.344&f=u




More information about the pld-cvs-commit mailing list