The time now is Sat 25 May 2013, 08:29
All times are UTC - 4 |
|
Page 2 of 2 [17 Posts] |
Goto page: Previous 1, 2 |
| Author |
Message |
big_bass

Joined: 13 Aug 2007 Posts: 1736
|
Posted: Tue 23 Feb 2010, 14:05 Post subject:
|
|
| Quote: |
seaside
Maybe big_bass will provide you with a more precise translation of "borked" than Google Very Happy |
well ,yes I will
here is a better way to translate it
| Description |
|
| Filesize |
33.86 KB |
| Viewed |
276 Time(s) |

|
_________________ slackware 14
|
|
Back to top
|
|
 |
amigo
Joined: 02 Apr 2007 Posts: 1759
|
Posted: Tue 23 Feb 2010, 17:04 Post subject:
|
|
Here's a diff against (I guess) an older version of petget:
| Code: | --- ./petget.00 2007-09-14 11:55:56.000000000 +0200
+++ ./petget 2010-02-23 22:07:31.000000000 +0100
@@ -16,8 +16,8 @@
#13Sept2007 BK: v2.21 handle true flushing to flash drive.
#v2.17.1 trying to fix a bug...
-LANG=C
-export LANG
+# LANG=C
+# export LANG
PUPPYVERSION="`cat /etc/puppyversion`"
#v2.17.1 variables created at bootup by /initrd/usr/sbin/init...
@@ -1166,7 +1166,7 @@
#fi
-sort -u $WKGDIR/livepackages.txt > /tmp/livepackages.txt
+LANG=C sort -u $WKGDIR/livepackages.txt > /tmp/livepackages.txt
sync
PACKAGESFND="`cat /tmp/livepackages.txt`"
@@ -1308,7 +1308,7 @@
if [ ! "$PKGS2REM" = "" ];then
#v1.0.3 hiccup, see patch above, it is possible we can get duplicate entries here, if a pkg
#is listed in both alienpackages.txt and livepackages.txt. use sort...
- PKGREMNAMES="`echo "$PKGS2REM" | cut -f 1 -d " " | sort -u | tr "\n" " "`"
+ PKGREMNAMES="`echo "$PKGS2REM" | cut -f 1 -d " " | LANG=C sort -u | tr "\n" " "`"
if [ ! "$DISABLEDX" = "yes" ];then
# gxmessage -center -name "pet" -bg "orange" -buttons "REMOVE:10,ABORT:11" "You have chosen to remove these packages from Puppy:
#$PKGREMNAMES
@@ -1774,7 +1774,7 @@
cat $WKGDIR/livepackages.txt | grep -v "$MPATTERN" > /tmp/tempvvvv
sync
cat /tmp/tempnewon >> /tmp/tempvvvv
- sort /tmp/tempvvvv > $WKGDIR/livepackages.txt
+ LANG=C sort /tmp/tempvvvv > $WKGDIR/livepackages.txt
rm -f /tmp/tempvvvv
fi
rm -f /tmp/tempnewon
|
As you can see, petget exports LANG right at the top, which the patch comments out. The other hunks of the patch add LANG=C only where needed -at least that should be the main spots where the speedup is needed.
As for your package, as suggested, a wrapper which sets the LANG an executes your program should work, or include a setup tool for it which sets up the system LANG and copies the menu items before running the program the first time.
|
|
Back to top
|
|
 |
|
|
Page 2 of 2 [17 Posts] |
Goto page: Previous 1, 2 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|