PATCH: ./builder --show-bconds (rfc)

Mikolaj Kucharski build w kompuart.pl
Czw, 24 Lis 2005, 11:33:44 CET


Czy ktos ma jakies przeciwstazania, komentarze co do zaloczonego
patcha?

-- 
best regards
q#
-------------- następna część ---------
Index: builder
===================================================================
RCS file: /cvsroot/SPECS/builder,v
retrieving revision 1.323
diff -u -r1.323 builder
--- builder	21 Aug 2005 17:35:46 -0000	1.323
+++ builder	24 Nov 2005 10:30:44 -0000
@@ -186,7 +186,7 @@
 [-Tvs|--tag-version-stable] [-Tvn|--tag-version-nest]
 [-Ts|--tag-stable] [-Tn|--tag-nest] [-Tv|--tag-version]
 [{-Tp|--tag-prefix} <prefix>] [{-tt|--test-tag}]
-[-nu|--no-urls] [-v|--verbose] [--opts <rpm opts>]
+[-nu|--no-urls] [-v|--verbose] [--opts <rpm opts>] [--show-bconds]
 [--with/--without <feature>] [--define <macro> <value>] <package>[.spec]
 
 -5, --update-md5    - update md5 comments in spec, implies -nd -ncs
@@ -273,6 +273,8 @@
 -U, --update        - refetch sources, don't use distfiles, and update md5 comments
 -Upi, --update-poldek-indexes
                     - refresh or make poldek package index files.
+--show-bconds       - show available conditional builds, which can be used
+                    - with --with and/or --without switches.
 --with/--without <feature>
                     - conditional build package depending on %_with_<feature>/
                       %_without_<feature> macro switch.  You may now use
@@ -1621,11 +1623,18 @@
 			RPMOPTS="${RPMOPTS} --nodeps"
 			;;
 		-debug)
-			RPMOPTS="${RPMOPTS} -debug"; shift ;;
+			RPMOPTS="${RPMOPTS} -debug";
+			shift
+			;;
+		--show-bconds | -show-bconds | -print-bconds | --print-bconds | -display-bconds | --display-bconds )
+			SHOW_BCONDS="yes"
+			shift
+			;;
 		* )
 			SPECFILE="${1}"
 			export PROMPT_COMMAND=`echo -ne "\033]0;${SPECFILE}\007"`
-			shift ;;
+			shift
+			;;
 	esac
 done
 
@@ -1650,6 +1659,9 @@
 			get_spec;
 			set_bconds_values;
 			display_bconds;
+			if [ X"$SHOW_BCONDS" = X"yes" ]; then
+				exit 0
+			fi
 			fetch_build_requires;
 			parse_spec;
 			if [ "$INTEGER_RELEASE" = "yes" ]; then


Więcej informacji o liście dyskusyjnej pld-devel-pl