Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 25 May 2015, 07:48
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Pet package 'pinstall.sh' problem!
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 2 Posts_count   Goto page: Previous 1, 2
Author Message

Joined: 13 Aug 2007
Posts: 1746

PostPosted: Tue 23 Feb 2010, 14:05    Post_subject:  


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 Very Happy
 Filesize   33.86 KB
 Viewed   347 Time(s)


Back to top
View user's profile Send_private_message 

Joined: 02 Apr 2007
Posts: 2365

PostPosted: Tue 23 Feb 2010, 17:04    Post_subject:  

Here's a diff against (I guess) an older version of petget:
--- ./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...
-export LANG
+# export LANG
 PUPPYVERSION="`cat /etc/puppyversion`"
 #v2.17.1 variables created at bootup by /initrd/usr/sbin/init...
@@ -1166,7 +1166,7 @@
-sort -u $WKGDIR/livepackages.txt > /tmp/livepackages.txt
+LANG=C sort -u $WKGDIR/livepackages.txt > /tmp/livepackages.txt
 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:
@@ -1774,7 +1774,7 @@
     cat $WKGDIR/livepackages.txt | grep -v "$MPATTERN" > /tmp/tempvvvv
     cat /tmp/tempnewon >> /tmp/tempvvvv
-    sort /tmp/tempvvvv > $WKGDIR/livepackages.txt
+    LANG=C sort /tmp/tempvvvv > $WKGDIR/livepackages.txt
     rm -f /tmp/tempvvvv
    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
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 2 of 2 Posts_count   Goto page: Previous 1, 2
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot attach files in this forum
You can download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0468s ][ Queries: 13 (0.0058s) ][ GZIP on ]