SPECS: builder - add --skip-existing-files
glen
glen at pld-linux.org
Mon Jan 16 23:09:06 CET 2006
Author: glen Date: Mon Jan 16 22:09:05 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add --skip-existing-files
---- Files affected:
SPECS:
builder (1.367 -> 1.368)
---- Diffs:
================================================================
Index: SPECS/builder
diff -u SPECS/builder:1.367 SPECS/builder:1.368
--- SPECS/builder:1.367 Sun Jan 15 12:38:28 2006
+++ SPECS/builder Mon Jan 16 23:09:00 2006
@@ -86,6 +86,9 @@
FAIL_IF_NO_SOURCES="yes"
+# let get_files skip over files which are present to get those damn files fetched
+SKIP_EXISTING_FILES="no"
+
if [ -x /usr/bin/rpm-getdeps ]; then
FETCH_BUILD_REQUIRES_RPMGETDEPS="yes"
else
@@ -228,6 +231,8 @@
-ns, --no-srcs - don't download Sources
-ns0, --no-source0 - don't download Source0
-nn, --no-net - don't download anything from the net
+-ske,
+--skip-existing-files - skip existing files in get_files
--opts <rpm opts> - additional options for rpm
-q, --quiet - be quiet,
--date yyyy-mm-dd - build package using resources from specified CVS date,
@@ -657,6 +662,9 @@
fi
for i in $GET_FILES
do
+ if [ -f "`nourl $i`" ] && [ "$SKIP_EXISTING_FILES" = "yes" ]; then
+ continue
+ fi
if [ -n "$UPDATE5" ]; then
if [ -n "$ADD5" ]; then
[ `nourl $i` = "$i" ] && continue
@@ -1536,6 +1544,8 @@
shift; LOGFILE="${1}"; shift ;;
-ni| --nice )
shift; DEF_NICE_LEVEL=${1}; shift ;;
+ -ske | --skip-existing-files)
+ SKIP_EXISTING_FILES="yes"; shift ;;
-m | --mr-proper )
COMMAND="mr-proper"; shift ;;
-nc | --no-cvs )
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/builder?r1=1.367&r2=1.368&f=u
More information about the pld-cvs-commit
mailing list