ignore unknown tags in rpmlist file
authorLudwig Nussel <ludwig.nussel@suse.de>
Mon, 3 May 2010 09:30:18 +0000 (11:30 +0200)
committerLudwig Nussel <ludwig.nussel@suse.de>
Mon, 3 May 2010 09:33:01 +0000 (11:33 +0200)
init_buildsystem

index 2ed6e7b..63e00f9 100755 (executable)
@@ -565,6 +565,10 @@ else
            echo "${SRC#*:}" > $BUILD_ROOT/.init_b_cache/rpms/${SRC%%:*}.id
            continue
        fi
+       if test "$PKG" != "${PKG%:}"; then
+           echo "Warning: ignoring unsupported tag '$PKG'" >&2
+           continue
+       fi
        if [ "${SRC#/}" = "$SRC" ]; then
            url="$SRC"
            case "$url" in
@@ -572,7 +576,7 @@ else
                    downloadpkg "$url"
                    ;;
                *)
-                   echo "unsupported url: $url" >&2
+                   echo "unsupported url for '$PKG': $url" >&2
                    cleanup_and_exit 1
                    ;;
            esac