Author: ks156
Date: 2009-01-19 14:12:14 +0100 (Mon, 19 Jan 2009)
New Revision: 3483
Modified:
software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/updater/tux_updater
Log:
* Fixed a bug with the attitunes update
Modified:
software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/updater/tux_updater
===================================================================
---
software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/updater/tux_updater
2009-01-16 16:07:11 UTC (rev 3482)
+++
software_suite_v2/tuxware/installers/unix/trunk/build_deps/common/updater/tux_updater
2009-01-19 13:12:14 UTC (rev 3483)
@@ -115,6 +115,9 @@
unzip -q /tmp/$file -d /tmp/tux_tmp
rm /tmp/$file
verifyUser
+ if [ ! -d $path ]; then
+ mkdir -p $path
+ fi
cp -r /tmp/tux_tmp/* $path/
chmod -R 755 $path
rm -rf /tmp/tux_tmp
@@ -135,10 +138,15 @@
echo $line |grep gadgets >/dev/null
if [ $? == 0 ]; then
path=~/MyTux/MyTuxGadgets
- echo $line |grep attitunes > /dev/null
fi
+ echo $line |grep attitunes > /dev/null
if [ $? == 0 ]; then
- path=~/MyTux/MyTuxAttitunes
+ temp=`echo $line |cut -d ";" -f 3`
+ temp=${temp##*/}
+ if [ $temp == "attitunes" ]; then
+ temp=""
+ fi
+ path=~/MyTux/MyTuxAttitunes/$temp
fi
echo $line |grep tools > /dev/null
if [ $? == 0 ]; then
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn