From d8379db7bfd20c4bdb707e0813e96e11f49217c517683e71fe21fb68100fb559 Mon Sep 17 00:00:00 2001 From: Stefan Knorr Date: Thu, 15 Sep 2016 12:28:57 +0000 Subject: [PATCH] Add --tag parameter to the archive fetcher OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/suse-xsl-stylesheets?expand=0&rev=106 --- suse-xsl-stylesheets-2.0.6.2.tar.bz2 | 4 ++-- susexsl-fetch-source-git | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/suse-xsl-stylesheets-2.0.6.2.tar.bz2 b/suse-xsl-stylesheets-2.0.6.2.tar.bz2 index c2e9581..1a077d8 100644 --- a/suse-xsl-stylesheets-2.0.6.2.tar.bz2 +++ b/suse-xsl-stylesheets-2.0.6.2.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7eb98a37bf0e4db0f58015d3e83d174c68c061f1c6477de603e7c2594bcc84ee -size 1795376 +oid sha256:2192263cbf8bd10602956ebc8dbe10132d2b67f18ab9cf48b4086ab6b3b52dcd +size 1795842 diff --git a/susexsl-fetch-source-git b/susexsl-fetch-source-git index dc08b4a..ba6e07d 100644 --- a/susexsl-fetch-source-git +++ b/susexsl-fetch-source-git @@ -70,7 +70,10 @@ esac # Check for archive file name # if [[ -z $1 ]]; then - exit_on_error "Please specify a URl for a suse-xsl release archive on Github, e.g.\https://github.com/openSUSE/suse-xsl/archive/2.0-rc5.tar.gz" + exit_on_error "Please specify a URL for a suse-xsl release archive on Github, e.g.\https://github.com/openSUSE/suse-xsl/archive/2.0-rc5.tar.gz. Alternatively, use --tag [TAG_NAME]." +elif [[ $1 = '--tag' ]] && [[ $2 ]]; then + ARCHIVE_URL="https://github.com/openSUSE/suse-xsl/archive/$2.tar.gz" + ARCHIVE_NAME="${ARCHIVE_URL##*/}" else ARCHIVE_URL="$1" ARCHIVE_NAME="${ARCHIVE_URL##*/}"