packages: builder - builder -a now checks for NAME/NAME.spec file before ad...
sparky
sparky at pld-linux.org
Mon Jan 17 00:36:05 CET 2011
Author: sparky Date: Sun Jan 16 23:36:05 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- builder -a now checks for NAME/NAME.spec file before adding anything to cvs
---- Files affected:
packages:
builder (1.641 -> 1.642)
---- Diffs:
================================================================
Index: packages/builder
diff -u packages/builder:1.641 packages/builder:1.642
--- packages/builder:1.641 Sun Dec 12 21:03:54 2010
+++ packages/builder Mon Jan 17 00:35:59 2011
@@ -742,8 +742,9 @@
if [ -d "$ASSUMED_NAME" -a -s "$ASSUMED_NAME/CVS/Root" ]; then
cvsup "$ASSUMED_NAME/$SPECFILE" || Exit_error err_no_spec_in_repo
elif [ "$ADD_PACKAGE_CVS" = "yes" ]; then
- if [ ! -d "$ASSUMED_NAME" ]; then
- install -d "$ASSUMED_NAME"
+ if [ ! -r "$ASSUMED_NAME/$SPECFILE" ]; then
+ echo "ERROR: No package to add ($ASSUMED_NAME/$SPECFILE)" >&2
+ exit 101
fi
if [ ! -s "$ASSUMED_NAME/CVS/Root" ]; then
cvsup -a $ASSUMED_NAME || Exit_error err_cvs_add_failed
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/builder?r1=1.641&r2=1.642&f=u
More information about the pld-cvs-commit
mailing list