Skip to content

Commit

Permalink
cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Mar 6, 2013
1 parent 421a52f commit be7aaec
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions update-source.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
#!/bin/sh
# arch to check package. irrelevant for actual arch
arch=x86_64
# branch: stable, beta, unstable. default: stable
branch=${1:-stable}
# arch to check package. irrelevant for actual arch
arch=x86_64

pkg=google-talkplugin
specfile=$pkg.spec
sourceurl=http://dl.google.com/linux/talkplugin/rpm/stable/$arch/

case "${branch}" in
set -e

case "$branch" in
stable|beta|unstable)
;;
*)
Expand All @@ -13,17 +19,11 @@ case "${branch}" in
;;
esac

sourceurl=http://dl.google.com/linux/talkplugin/rpm/stable/$arch

set -e

echo -n "Fetching latest version... "
t=$(mktemp)

# poldek is buggy, see https://bugs.launchpad.net/poldek/+bug/1026762
#poldek -q --st=metadata --source "$sourceurl/" --update
#poldek -q --skip-installed --st=metadata --source "$sourceurl/" --cmd "ls google-chrome-$branch" > $t

wget -c $sourceurl/repodata/primary.xml.gz
zcat primary.xml.gz | perl -ne 'm{<name>google-talkplugin</name>} and m{<version epoch="0" ver="([\d.]+)" rel="(\d+)"/>} and print "$1 $2"' > $t

Expand Down

0 comments on commit be7aaec

Please sign in to comment.