site  contact  subhomenews

PPM Ziggy interface fixed

February 24, 2012 — BarryK
Forum member esmourguit reported that the Ziggy user interface of the Puppy Package Manager, does not fully translate to another language, also a couple of icons are missing.

The file is /usr/local/petget/ui_Ziggy, and it is fixed. Woof commit:
http://bkhome.org/fossil/woof2.cgi/info/3df37e36e2

Also in this commit is a fix for /usr/sbin/quicksetup to load a console font when the locale is changed. This should fix a problem reported of wrong font after exiting from X.

Comments

PPM Ziggy


Re Ziggy
Username: BarryK
"Aargh! Yes, you are right. Ok, I have fixed ui_Ziggy so that it now works with translated categories.

findnames.sh
Username: mavrothal
"In wary/racy 5.3 findname.sh line 56 has "getext" instead of "gettext" so the "Sorry, no matching package name" response is easy to miss ;) Also is there any reason that PPM only search for packages that _start_ with the searching word? What about if someone is looking for a (web) browser of a (video) player or something descriptive but not a pet name?

Re PPM search
Username: BarryK
"[i]Also is there any reason that PPM only search for packages that _start_ with the searching word?[/i] Only? The help page in PPM explains that you can use wildcards, like this: *input* or even just *input Yes, that would be a good feature, to search also the description.

re findnames.sh
Username: BarryK
"mavrothal, Thanks, fixed "getext" typo on PPM findnames.sh.

search description
Username: mavrothal
"[i]Yes, that would be a good feature, to search also the description[/i] Jemimah has changes that allows searches of both pet names and descriptions at the same time here: http://www.murga-linux.com/puppy/viewtopic.php?p=618542#618542 And I had a patch for searching with max 2 native language terms, like "text edit" here: http://www.murga-linux.com/puppy/viewtopic.php?p=618566#618566 You might want to take a look and consider them for future PPM updates.

search description i18n
Username: L18L
"mavrothal wrote:[i]Yes, that would be a good feature, to search also the description [/i] Localizing package descriptions is possible. Though without momanager but very easy, see [url=http://www.murga-linux.com/puppy/viewtopic.php?t=64708]dotpup/petget%20i18n I have been translating just some package descriptions to demonstrate that it is possible. But Spanish is translated completely, see http://www.murga-linux.com/puppy/viewtopic.php?p=571845 please.

searches in petget
Username: disciple
"I don't know if it reflects the current state of woof, but I've tried a Slacko downloaded some time in the last few months, and it seems there is no way to either: 1. Search for packages in more than one repository at a time, or 2. Search for packages in all categories at once. Am I missing something? IMNSHO these are very important features, particularly the second. If you know what you want to install but don't know where to find it, it is torture having to click on each repository and each category, wait for it to load, and search in it separately.

Re PPM improvements
Username: BarryK
"This is very good thread, excellent suggestions for improving PPM. I intend to get stuck into this soon, but in case I don't, someone please gently remind me about this thread! From today I am going on a week (7 days) holiday. Won't be doing much Puppy stuff. Um, I had better announce this as a new post.

rearch everything
Username: mavrothal
"[i]1. Search for packages in more than one repository at a time, or 2. Search for packages in all categories at once. [/i] These 2 patches will do that, but I'm not sure if it is going to bring confusion or results result in non-working packages when incompatible repos are activated. Here they are any way. installpreview.sh.patch [code]--- a/usr/local//petget/installpreview.sh 2012-03-13 08:47:38.000000000 +0200 +++ b/usr/local/petget/installpreview.sh 2012-04-11 10:02:51.000000000 +0300 @@ -21,12 +21,21 @@ X1PID=$! #ex: TREE1=abiword-1.2.4 (first field in database entry). -DB_FILE=Packages-`cat /tmp/petget_filterversion` #ex: Packages-slackware-12.2-official - -rm -f /tmp/petget_missing_dbentries-* 2>/dev/null - -tPATTERN='^'"$TREE1"'|' -DB_ENTRY="`grep "$tPATTERN" /root/.packages/$DB_FILE | head -n 1`" +REPOS=`cat /tmp/petget_filterversion` +for DBLINE in $REPOS + do + DB_FILE=Packages-"$DBLINE" #ex: Packages-slackware-12.2-official + echo $DB_FILE + rm -f /tmp/petget_missing_dbentries-* 2>/dev/null + + tPATTERN='^'"$TREE1"'|' + DB_ENTRY_ORIG="`grep "$tPATTERN" /root/.packages/$DB_FILE | head -n 1`" + if [ "$DB_ENTRY_ORIG" != "" ] ; then + DB_ENTRY="$DB_ENTRY_ORIG" + echo "$DBLINE" > /tmp/petget_filterversion + break + fi + done #line format: pkgname|nameonly|version|pkgrelease|category|size|path|fullfilename|dependencies|description| #optionally on the end: compileddistro|compiledrelease|repo| (fields 11,12,13) [/code]

mavrothal
Username: patch2
"The findnames.sh patch does not fit here but is basically [url=http://www.murga-linux.com/puppy/viewtopic.php?p=618566#618566]this one with [code]rm -f /tmp/petget_filterversion /tmp/filterpkgs.results[/code] added on top

working versions
Username: mavrothal
"disciple If you want to try a Lupu528.005 working version of the above look [url=http://www.murga-linux.com/puppy/viewtopic.php?p=618799#618799]here (and no,... my name is not patch2 ;-)

Re re PPM improvements
Username: L18L
"script /usr/local/petget/[b]translatedescr.sh[/b] new from scratch translates package descriptions in PPM [code] #translatedescr.sh #2012 Lesser GPL licence v2 (http://www.fsf.org/licensing/licenses/lgpl.html). #translates package descriptions in INPUTFILE #INPUTFILE is set in calling script #called from filterpkgs.sh, INPUTFILE=/tmp/filterpkgs.results.post #called from finduserinstalledpkgs.sh INPUTFILE=/tmp/installedpkgs.results #ex: #msgid "A GNU archiving program" #msgstr "Ein GNU-Archivierungsprogramm" TEXTDOMAIN=package_descr export TEXTDOMAIN if [ "`gettext \"no description available\"`" != "no description available" ]; then # only if this message was translated in TEXTDOMAIN mv $INPUTFILE ${INPUTFILE}.tmp while read LINE do pckgNAME="`echo -n "$LINE" | cut -f 1 -d '|'`" pckgDESC="`echo -n "$LINE" | cut -f 2 -d '|'`" #ex:"A GNU archiving program" [ "$pckgDESC" = "" ] && pckgDESC="`gettext \"no description available\"`" pckgDESC_LANG="`gettext \"${pckgDESC}\"`" #ex:"Ein GNU-Archivierungsprogramm" echo -e "${pckgNAME}|${pckgDESC_LANG}" >> $INPUTFILE done < ${INPUTFILE}.tmp rm -f ${INPUTFILE}.tmp fi # #----------------------------------------------------------------- # NOTE1, installpreview.sh needs just 5 lines (without #) added after #DB_description="`echo -n "$DB_ENTRY" | cut -f 10 -d '|'`" #if [ "LANG1" != "en" ]; then #translate package description # export TEXTDOMAIN=package_descr # DB_description="`gettext \"${DB_description}\"`" # export TEXTDOMAIN=petget___installpreview.sh #fi #package descriptions translated [/code] continued in next post

PPM improvements 2
Username: L18L
"[code] #We do not test existence of package_descr.mo file #as it is just 1 access and gettext does test existence # NOTE2, append next 4 lines (without #) to finduserinstalledpkgs.sh #if [ "LANG1" != "en" ]; then #translate package descriptions # INPUTFILE=/tmp/installedpkgs.results # . /usr/local/petget/translatedescr.sh #fi #package descriptions translated # NOTE3, append next 4 lines (without #) to filterpkgs.sh #if [ "LANG1" != "en" ]; then #translate package descriptions # INPUTFILE=/tmp/filterpkgs.results.post # . /usr/local/petget/translatedescr.sh #fi #package descriptions translated #----------------------------------------------------------- L18L -- [/code]

translate package descriptions
Username: L18L
"coded and tested see forum please http://www.murga-linux.com/puppy/viewtopic.php?p=620266

Re 0setup problem
Username: BarryK
"mavrothal, I have just examined that entire block of code starting at: [i]#download docs on compatible-distro pkgs...[/i] And the structure appears to be ok. No extra "fi".

Re 0setup problem
Username: mavrothal
"Correct. Re-downloaded the iso and is fine. Somehow was a duplication of the last skip step in mine :-? (usb sticks can be messy...)

PPM reminder
Username: disciple
"> This is very good thread, excellent suggestions for improving PPM. I intend to get stuck into this soon, but in case I don't, someone please gently remind me about this thread! Since on the 19th you were looking at the work the other guys did on this, should we assume that you don't need a reminder?

Still need a PPM reminder
Username: BarryK
"[i]> This is very good thread, excellent suggestions for improving PPM. I intend to get stuck into this soon, but in case I don't, someone please gently remind me about this thread! Since on the 19th you were looking at the work the other guys did on this, should we assume that you don't need a reminder? [/i] Ah, they were just some spur-of-the-moment responses. The PPM will involve a bit more work, and I am still going full-bore on the ARM port, will get around to PPM and other stuff later, maybe another week away.


Tags: woof