]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- added two new options, both intended for offline operations:
authortwittner <twittner@pld-linux.org>
Sun, 19 Dec 2004 23:19:54 +0000 (23:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  -sf- list sources - bare filenames
  -sp - list sources - filenames with full local paths
- unfortunately they don't work when Icon field is present
  but icon file is absent (probably due to rpm bug):
rpm_dump_cache=error: Unable to open icon ~/rpm/SOURCES/php.gif: No such file or directory

Changed files:
    builder.sh -> 1.295

builder.sh

index f1f6020e8d60256c53191c375b9db05748293f30..b19555ecbe5ae6af0b96ac671d6446e7cf7b8bf6 100644 (file)
@@ -232,6 +232,12 @@ Usage: builder [-D|--debug] [-V|--version] [-a|--as_anon] [-b|-ba|--build]
 -FRB, --force-remove-build-requires
                     - remove all you fetched with -R or --fetch-build-requires
                       remember, this option works without confirmation,
+-sf, --source-files - list sources - bare filenames (intended for offline
+                      operations; does not work when Icon field is present
+                                                        but icon file is absent),
+-sp, --source-paths - list sources - filenames with full local paths (intended for
+                      offline operations; does not work when Icon field is present
+                                                        but icon file is absent),
 -T <cvstag> , --tag <cvstag>
                     - add cvs tag <cvstag> for files,
 -Tvs, --tag-version-stable
@@ -456,7 +462,7 @@ get_spec()
                chmod $CHMOD_MODE $SPECFILE
        fi
        unset OPTIONS
-       grep -E -m 1 "^#.*Revision:.*Date" $SPECFILE
+       [ -n "$DONT_PRINT_REVISION" ] || grep -E -m 1 "^#.*Revision:.*Date" $SPECFILE
 }
 
 find_mirror()
@@ -1361,6 +1367,12 @@ do
                -FRB | --force-remove-build-requires)
                        REMOVE_BUILD_REQUIRES="force"
                        shift ;;
+               -sf | --sources-files)
+                       COMMAND="list-sources-files"
+                       shift ;;        
+               -sp | --sources-paths)
+                       COMMAND="list-sources-local-paths"
+                       shift ;;        
                -Tvs | --tag-version-stable )
                        COMMAND="tag";
                        TAG="STABLE"
@@ -1552,6 +1564,28 @@ case "$COMMAND" in
        "mr-proper" )
                $RPM --clean --rmsource --rmspec --force --nodeps $SPECFILE
                ;;
+       "list-sources-files" )
+               init_builder
+               NOCVSSPEC="yes"
+               DONT_PRINT_REVISION="yes"
+               get_spec
+               parse_spec
+               SAPS="$SOURCES $PATCHES"
+               for SAP in $SAPS ; do
+                        echo $SAP | awk '{gsub(/.*\//,"") ; print}'
+               done
+               ;;
+       "list-sources-local-paths" )
+               init_builder
+               NOCVSSPEC="yes"
+               DONT_PRINT_REVISION="yes"
+               get_spec
+               parse_spec
+               SAPS="$SOURCES $PATCHES"
+               for SAP in $SAPS ; do
+                        echo $SOURCE_DIR/$(echo $SAP | awk '{gsub(/.*\//,"") ; print }')
+               done
+               ;;
        "usage" )
                usage;;
        "version" )
This page took 0.074751 seconds and 4 git commands to generate.