]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- avoid shell errors if $LOGFILE is not set in initial package checkout
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 2 Sep 2010 20:00:27 +0000 (20:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.631

builder.sh

index 8dcae8f154dd5c24404b586337b5ef2ff4c09d49..c55fcc0e0228b718b9b66f45c85552f5321de8e5 100644 (file)
@@ -747,8 +747,8 @@ get_spec() {
                        rm -f "$ASSUMED_NAME/CVS/Entries.Static"
                        cvsignore_df .cvsignore
 
-                       # add default log format to .cvsignore if it is relative
-                       if [ "$LOGFILE" = $(basename "$LOGFILE") ]; then
+                       # add default log format to .cvsignore if it is relative to package dir
+                       if [ -n "$LOGFILE" -a "$LOGFILE" = "${LOGFILE##*/}" ]; then
                                # substitute known "macros" to glob
                                local logfile=$(echo "$LOGFILE" | sed -e 's,\$\(PACKAGE_NAME\|DATE\),*,g')
                                if [ "$logfile" ]; then
This page took 0.391846 seconds and 4 git commands to generate.