[SCM] primesense-nite-nonfree/master: check if 64-bit and set download URL accordingly to 64-bit or 32-bit
eighthave-guest at users.alioth.debian.org
eighthave-guest at users.alioth.debian.org
Mon May 30 04:38:24 UTC 2011
The following commit has been merged in the master branch:
commit ea2fe8dc2e8aee8487ccb3682b24d9b7dcfc495b
Author: Hans-Christoph Steiner <hans at eds.org>
Date: Mon May 30 00:25:38 2011 -0400
check if 64-bit and set download URL accordingly to 64-bit or 32-bit
diff --git a/update-primesense-nite-nonfree b/update-primesense-nite-nonfree
index 7d89f9a..f6d145a 100755
--- a/update-primesense-nite-nonfree
+++ b/update-primesense-nite-nonfree
@@ -167,7 +167,11 @@ case "$ACTION" in
[ "$fast" != "yes" ] || wgetoptions="$wgetoptions $wgetfast"
[ "$verbose" != "yes" ] || echo "wgetoptions=$wgetoptions"
- downloadurl=${URL64}
+ if [ $(uname -m) = "x86_64" ]; then
+ downloadurl=${URL64}
+ else
+ downloadurl=${URL32}
+ fi
[ "$verbose" != "yes" ] || echo "downloading $downloadurl ..."
wget $wgetoptions $downloadurl -O ${downloadedfile} \
|| die_hard_with_a_cleanup "wget failed to download $downloadurl"
--
primesense-nite-nonfree packaging
More information about the pkg-multimedia-commits
mailing list