]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- builder -a now checks for NAME/NAME.spec file before adding anything to cvs
authorsparky <sparky@pld-linux.org>
Sun, 16 Jan 2011 23:35:59 +0000 (23:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.642

builder.sh

index 07d32a9b19d6116c0c329be59426dd613a38114a..99232ca74275fe6cd591429d96e0783c85018cf3 100644 (file)
@@ -742,8 +742,9 @@ get_spec() {
                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
This page took 0.038022 seconds and 4 git commands to generate.