PPM2

Using applications, configuring, problems
Message
Author
User avatar
rg66
Posts: 1158
Joined: Mon 23 Jul 2012, 05:53
Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!

#201 Post by rg66 »

I've added a check button in options to enable or disable checking for service packs. Defaults to enabled, patches below.
Attachments
ppm2-sp.tar.gz
(852 Bytes) Downloaded 342 times
X-slacko-5b1 - X-tahr-2.0 - X-precise-2.4
[url=http://smokey01.com/rg66/]X-series repo[/url]

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#202 Post by mavrothal »

rg66 wrote:I've added a check button in options to enable or disable checking for service packs. Defaults to enabled, patches below.
OK. Added it in the list of of additional options at the bottom of the first post of this tread.

Talking about options here is one I have for some time allowing installation of malformed packages (reaffirming puppy as a hobby distro...) that appears to be appealing to some.

Code: Select all

--- a/usr/local/petget/installpkg.sh
+++ b/usr/local/petget/installpkg.sh
@@ -228,15 +228,16 @@
   if [ "${DLPKG_MAIN}" != "${PETFOLDER}" ]; then
    pupkill $YAFPID1
    if [ "$DISPLAY" ]; then
-    /usr/lib/gtkdialog/box_ok "$(gettext 'Puppy Package Manager')" error "<b>${DLPKG_MAIN}.pet</b> $(gettext 'is named') <b>${PETFOLDER}</b> $(gettext 'inside the pet file. Will not install it!')"
+    . /usr/lib/gtkdialog/box_yesno "$(gettext 'PPM Warning - Suspicious activity')"  "<b>${DLPKG_MAIN}.pet</b> $(gettext 'is named') <b>${PETFOLDER}</b> $(gettext 'inside the pet file. This can be more than just poor packaging, and likely to generate problems either way.') <b> $(gettext 'Do you really want to install this pet???')</b>"
+    [ "$EXIT" != "yes" ] && exit 1
    else
-    dialog --msgbox "$DLPKG_MAIN.pet $(gettext 'is named') $PETFOLDER $(gettext 'inside the pet file. Will not install it!')" 0 0
+    dialog --defaultno --title "$(gettext 'PPM Warning - Suspicious activity')" --yesno "$DLPKG_MAIN.pet $(gettext 'is named') $PETFOLDER $(gettext 'inside the pet file. This can be more than just poor packaging, and likely to generate problems either way. Do you really want to install this pet???')" 0 0 
+    [ $? -ne 0 ] && exit 1
    fi
-   exit 1
   fi
   if [ "`echo "$PETFILES" | grep '^\\./'`" != "" ];then
    #ttuuxx has created some pets with './' prefix...
-   pPATTERN="s%^\\./${DLPKG_NAME}%%"
+   pPATTERN="s%^\\./[^/]*%%" #MochiMoppel
    echo "$PETFILES" | sed -e "$pPATTERN" > /root/.packages/${DLPKG_NAME}.files
    install_path_check
    tar ${OPT} -x --strip=2 --directory=${DIRECTSAVEPATH}/ -f ${DLPKG_MAIN}.tar.${EXT} #120102. 120107 remove --unlink-first
If you use this hack make sure you also use this one so at least get some warning when a pet is installed with 2 (3, 4, 5,....) different names and try to uninstall one of them.
Sorry, no warning against malicious packages.
Attachments
rename_warning.png
(16.81 KiB) Downloaded 674 times
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#203 Post by slavvo67 »

I somewhat disagree with the language but I respect you for trying to standardize things. Having Puppy all over the place is one of the attractions ... and distractions....

I do like PPM2 a lot! Thanks for the tweaks, though. Means a world of difference in my small little world.

Best,

Slavvo67

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#204 Post by mavrothal »

slavvo67 wrote:I respect you for trying to standardize things.
No, I'm done with this (and other).
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#205 Post by 666philb »

hi mavrothal,

i was wondering if there's a way to stop the terminal grabbing focus when it's installing or uninstalling?

it's annoying if you try to type anything whist it's installing multiple libs
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#206 Post by mavrothal »

666philb wrote:i was wondering if there's a way to stop the terminal grabbing focus when it's installing or uninstalling?
I do not know.
We can not background the command because installs will run in parallel and will be a mess when multiple package or dependencies must be installed.

As you know you can hide the terminal in the preferences.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
xanad
Posts: 400
Joined: Fri 28 Feb 2014, 14:56
Location: 2 locations: MonteRosa Alp and Milano
Contact:

#207 Post by xanad »

Hi all,
PPM v2
It is a great program and very functional, but it's very difficult to translate.
Some observations and some solutions.
http://murga-linux.com/puppy/viewtopic. ... 192#867192
[url]http://www.xanad.tk[/url] Html5 Parallax

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#208 Post by mavrothal »

xanad wrote:but it's very difficult to translate.
Here is a version with the latest changes in woof-CE (plus some more uncommitted) that may help translation.
Please test (in translation or in English).
Attachments
ppm_translate-101415.pet
(75.83 KiB) Downloaded 299 times
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

ppm2 translation

#209 Post by L18L »

Really very difficult or even impossible, for example this:

Code: Select all

#: /usr/local/petget/installmodes.sh:305
msgid "of the "
msgstr ""
:roll:

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Re: ppm2 translation

#210 Post by mavrothal »

L18L wrote:Really very difficult or even impossible, for example this:

Code: Select all

#: /usr/local/petget/installmodes.sh:305
msgid "of the "
msgstr ""
:roll:
I see your point though this is a different issue.
The idea of this pet is to solve the problem that some strings although gettext and translated properly, were still displayed in English.

You bring up the issue of some (inappropriate?) syntax in English that makes it in some case tricky (impossible?) to translate.
The "of the" in your specific example reads
Last warning. ABC of the XYZ available MB will be used to install the package(s) you selected.
In a couple of languages that I understand translates fine but I' guess that in others the syntax is different and it does not. We are sure open for suggestion on the wording (we have even asked explicitly in the past) or anything else.
Better yet a patch :wink:
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: ppm2 translation

#211 Post by L18L »

mavrothal wrote:Better yet a patch :wink:

Code: Select all

   #. /usr/lib/gtkdialog/box_yesno "$(gettext 'Last warning')" "$NEEDEDK $(gettext 'of the ') $AVAILABLE $(gettext ' available MB will be used to install the package(s) you selected.')" "<b>$(gettext 'It is NOT sufficent. Please exit now.')</b>"  "$(gettext 'However, if you are sure about the spep-by-step process, take a risk.')" "$(gettext 'Do you want to cancel installation?')"
   . /usr/lib/gtkdialog/box_yesno "$(gettext 'Last warning')" "$(eval echo `gettext '$NEEDEDK of the  $AVAILABLE available MB will be used to install your selected packages.'`)" "<b>$(gettext 'It is NOT sufficent. Please exit now.')</b>"  "$(gettext 'However, if you are sure about the spep-by-step process, take a risk.')" "$(gettext 'Do you want to cancel installation?')" 
pot file contains then:

Code: Select all

#: /usr/local/petget/installmodes.sh:307
#, sh-format
msgid "$NEEDEDK of the  $AVAILABLE available MB will be used to install your selected packages."
msgstr ""
Voila :wink:

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#212 Post by musher0 »

Hello, all.

How does a user replace in PPM's the old ftp or http addresses for Ubuntu or Debian
distros whose depots have been moved? It would be a shame to ditch because of this
the excellent work of 666philb on vividpup, or of pemasu on UpupRaring and WheezyPup. .

Thanks in advance.

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Re: ppm2 translation

#213 Post by mavrothal »

L18L wrote: pot file contains then:
Got it. Thanks!
We'll do.
If you come other similar strings please let us know.
Last edited by mavrothal on Thu 15 Oct 2015, 03:50, edited 1 time in total.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#214 Post by mavrothal »

musher0 wrote: How does a user replace in PPM's the old ftp or http addresses for Ubuntu or Debian
distros whose depots have been moved?
Since the original, the repo addresses of the binary compatible distro are in /root/.packages/DISTRO_COMPAT_REPOS. Are part of the WOOF puppy building process and were never changed by PPM...
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#215 Post by musher0 »

mavrothal wrote:
musher0 wrote: How does a user replace in PPM's the old ftp or http addresses for Ubuntu or Debian
distros whose depots have been moved?
Since the original, the repo addresses of the binary compatible distro are in /root/.packages/DISTRO_COMPAT_REPOS. Are part of the WOOF puppy building process and were never changed by PPM...
Thank you, Mr. Terse. If you'd kindly elaborate, we will be grateful..
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#216 Post by mavrothal »

musher0 wrote: If you'd kindly elaborate, we will be grateful..
I believe my answer is addressing your question.
You may want to ask a better question if you are not happy with the answers you are getting.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#217 Post by musher0 »

mavrothal wrote:
musher0 wrote: If you'd kindly elaborate, we will be grateful..
I believe my answer is addressing your question.
You may want to ask a better question if you are not happy with the answers you are getting.
Hello mavrothal.

It isn't, but I thank you nevertheless for at least the time you spent typing your insult.

One forum member has provided one answer, and others have offered either a
pointer to it, or some help as to the focus of the question, so I won't be bothering
you any further.

Here's the funny thing about questions: when they first pop up in your head, they're
often fuzzy. You may wish to think about that -- or not.

BFN.

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

darry1966

#218 Post by darry1966 »

If I understand MusherO correctly he wants to know if you can edit PPM2 like apt-get sources list - pretty simple question.

Especially if sources change and they do, or you want a faster mirror.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#219 Post by musher0 »

Thanks for the moral support, darry1966.

I just put augras' solution to the test in upup-Raring-3.9.9.2. I did everything right, I
think, followed augras' instructions, updated the dB's, etc.

The PPM now lists the files from the http://old-releases.ubuntu.com/ubuntu/
site, but it doesn't download any of them because it can't get the filesize on my
system. Beats me.

In any case... patience is a virtue! :) We'll see this bug through, I'm sure.

I think it would be useful to have this feature in PPM because eventually all ubuntu-
based Pups will end up in this situation, which is no fun for the user. The user who
finds a Puppy distro (s)he likes will want to keep it as long as possible, so I think
(s)he would appreciate having this feature. (Provided by augras' pet or otherwise, it
doesn't really matter, IMO.)

Other distros have a longer life-cycle, but they'll end up in that situation too.

BFN.

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#220 Post by musher0 »

Hello all.

I risked plucking Iguleder's edit of PPM2 for LibrePup out of librepup and grafting it in
UpupRaring (after proper back-up of the original UpupRaring PPM). It worked fine.

This version gave me more to go on than UpupRaring's original version. It seems
the problem is with the filesize determination on the ubuntu servers, not on my
system. (Please see screen capture.)

Iguleder's PPM2 provided me with enough info to go to the depot and download the
files I wanted. Not ideal, but better than nothing. Once there, I noted that the
old.releases.ubuntu.com server was slow as hell. So maybe their speed is causing the bug.

Anyway, this is not a complaint; it's intended to be a contribution, however
incomplete, towards solving a bug.

BFN.

musher0
~~~~~~~~~
P.S. As a result, I now have a .tar.lzo archive of Iguleder's PPM2 in librepup. If
anyone's interested, leave me a note? Cheers.
Attachments
PPM2_4-in-a-row.jpg
Sorry for the lack of contrast in the bottom part of the picture. Best I could do. It says:
&quot;Waiting for response&quot;, or something to that effect.
(68.17 KiB) Downloaded 328 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply