[packages/rpm-build-tools] add --get-spec/-gs for getting just package

atler atler at pld-linux.org
Mon Jun 12 01:00:45 CEST 2023


commit 72b0e040cc4a21f1f315b083892a459fee8fce5c
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Jun 12 00:59:41 2023 +0200

    add --get-spec/-gs for getting just package

 builder.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/builder.sh b/builder.sh
index 2e8cc4a..f57dab6 100755
--- a/builder.sh
+++ b/builder.sh
@@ -2192,6 +2192,8 @@ while [ $# -gt 0 ]; do
 			;;
 		-g | --get )
 			COMMAND="get"; shift ;;
+		-gs | --get-spec )
+			COMMAND="get_spec"; shift ;;
 		-h | --help )
 			COMMAND="usage"; shift ;;
 		--ftp )
@@ -2641,6 +2643,14 @@ case "$COMMAND" in
 		check_md5 $SOURCES
 		fetch_build_requires
 		;;
+	"get_spec" )
+		init_builder
+		if [ -z "$SPECFILE" ]; then
+			Exit_error err_no_spec_in_cmdl
+		fi
+
+		get_spec
+		;;
 	"update_md5" )
 		init_builder
 		if [ -z "$SPECFILE" ]; then
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/72b0e040cc4a21f1f315b083892a459fee8fce5c



More information about the pld-cvs-commit mailing list