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 Sat 30 Aug 2014, 00:27
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 [17 Posts]   Goto page: Previous 1, 2
Author Message
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: 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 Very Happy
swedish-chef.jpg
 Description   
 Filesize   33.86 KB
 Viewed   339 Time(s)

swedish-chef.jpg


_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2236

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [17 Posts]   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 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
[ Time: 0.0450s ][ Queries: 12 (0.0037s) ][ GZIP on ]