Skip to content
Browse files

add support for ZIPped sources

  • Loading branch information...
1 parent 18331f8 commit 3205e12e806bb2b8ff903728375b181f7a8591fb @tuxofil tuxofil committed Feb 14, 2013
Showing with 5 additions and 4 deletions.
  1. +3 −3 opensuse.spec-templ
  2. +2 −1 yabs-worker.sh
View
6 opensuse.spec-templ
@@ -3,15 +3,15 @@
Name: strikead-%realname
Version: 0.2
-Release: 1
+Release: 2
License: Proprietary
Vendor: StrikeAd
Packager: Aleksey Morarash <aleksey.morarash@strikead.com>
Group: Development/Languages/Erlang
Source: strikead-%realname.tar.gz
Summary: RPM builder script.
URL: https://github.com/strikead/%realname/tarball/%revision
-Requires: sudo zypper createrepo util-linux sed coreutils curl tar gzip bzip2
+Requires: sudo zypper createrepo util-linux sed coreutils curl tar gzip bzip2 unzip
BuildArch: noarch
%description
@@ -48,7 +48,7 @@ grep --extended-regexp --quiet '^#includedir\s+/etc/sudoers.d\s*$' /etc/sudoers
echo '#includedir /etc/sudoers.d' >> /etc/sudoers
%changelog
-* Thu Feb 14 2013 Aleksey Morarash <aleksey.morarash@strikead.com> 0.2-1
+* Thu Feb 14 2013 Aleksey Morarash <aleksey.morarash@strikead.com> 0.2-2
- Built for OpenSUSE 12.2.
* Sun Feb 10 2013 Aleksey Morarash <aleksey.morarash@strikead.com> 0.1-1
View
3 yabs-worker.sh
@@ -108,7 +108,8 @@ export PKGURL SOURCESDIR PKGTAR
curl --location $AUTH_OPTS \
"$PKGURL" --output "$SOURCESDIR"/"$PKGTAR"
)
-tar tf "$SOURCESDIR"/"$PKGTAR"
+tar tf "$SOURCESDIR"/"$PKGTAR" || \
+ unzip -t "$SOURCESDIR"/"$PKGTAR"
## ---------------------------------------------
## register package repos...

0 comments on commit 3205e12

Please sign in to comment.
Something went wrong with that request. Please try again.