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 Wed 26 Nov 2014, 09:09
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
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   342 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: 2278

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:   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:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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