aboutsummaryrefslogtreecommitdiff
path: root/tools/XBMCLive/SDK/buildDEBs/build-installer.sh.hardy-variant
diff options
context:
space:
mode:
Diffstat (limited to 'tools/XBMCLive/SDK/buildDEBs/build-installer.sh.hardy-variant')
-rwxr-xr-xtools/XBMCLive/SDK/buildDEBs/build-installer.sh.hardy-variant14
1 files changed, 10 insertions, 4 deletions
diff --git a/tools/XBMCLive/SDK/buildDEBs/build-installer.sh.hardy-variant b/tools/XBMCLive/SDK/buildDEBs/build-installer.sh.hardy-variant
index 0bb536e8bf..8b0a95a907 100755
--- a/tools/XBMCLive/SDK/buildDEBs/build-installer.sh.hardy-variant
+++ b/tools/XBMCLive/SDK/buildDEBs/build-installer.sh.hardy-variant
@@ -115,12 +115,18 @@ if ! ls xbmclive-installhelpers_*.udeb > /dev/null 2>&1 ; then
cd $THISDIR
fi
-# Retrieve live_installer from Debian's repositories
-# TODO identify & retrieve the latest!
+# Retrieve live_installer from Ubuntu's repositories
if ! ls live-installer*.udeb > /dev/null 2>&1 ; then
echo "Retrieving live_installer udebs..."
- wget -q "http://ftp.uk.debian.org/debian/pool/main/l/live-installer/live-installer_13_i386.udeb"
- if [ "$?" -ne "0" ] || [ ! -f live-installer_13_i386.udeb ] ; then
+
+ # This is the debian repository (as a reference)
+ #repoURL="http://ftp.debian.org/debian/pool/main/l/live-installer/"
+ repoURL="http://archive.ubuntu.com/ubuntu/pool/universe/l/live-installer/"
+
+ latestPackage=$(curl -x "" -s -f $repoURL | grep -o 'live[^"]*_i386.udeb' | sort -r -k2 -t_ -n | head -n 1)
+ echo " - Latest package: $latestPackage"
+ wget -q "$repoURL$latestPackage"
+ if [ "$?" -ne "0" ] || [ ! -f $latestPackage ] ; then
echo "Needed package (1) not found, exiting..."
exit 1
fi