PPM2
- rg66
- Posts: 1158
- Joined: Mon 23 Jul 2012, 05:53
- Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!
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]
[url=http://smokey01.com/rg66/]X-series repo[/url]
OK. Added it in the list of of additional options at the bottom of the first post of this tread.rg66 wrote:I've added a check button in options to enable or disable checking for service packs. Defaults to enabled, patches below.
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
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] ==
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
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
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
I do not know.666philb wrote:i was wondering if there's a way to stop the terminal grabbing focus when it's installing or uninstalling?
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] ==
- xanad
- Posts: 400
- Joined: Fri 28 Feb 2014, 14:56
- Location: 2 locations: MonteRosa Alp and Milano
- Contact:
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
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
Here is a version with the latest changes in woof-CE (plus some more uncommitted) that may help translation.xanad wrote:but it's very difficult to translate.
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] ==
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
ppm2 translation
Really very difficult or even impossible, for example this:
Code: Select all
#: /usr/local/petget/installmodes.sh:305
msgid "of the "
msgstr ""
Re: ppm2 translation
I see your point though this is a different issue.L18L wrote:Really very difficult or even impossible, for example this:Code: Select all
#: /usr/local/petget/installmodes.sh:305 msgid "of the " msgstr ""
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
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.Last warning. ABC of the XYZ available MB will be used to install the package(s) you selected.
Better yet a patch
== [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] ==
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
Re: ppm2 translation
mavrothal wrote:Better yet a patch
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?')"
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 ""
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
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)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Re: ppm2 translation
Got it. Thanks!L18L wrote: pot file contains then:
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] ==
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...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?
== [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] ==
Thank you, Mr. Terse. If you'd kindly elaborate, we will be grateful..mavrothal wrote: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...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?
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
I believe my answer is addressing your question.musher0 wrote: If you'd kindly elaborate, we will be grateful..
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] ==
Hello mavrothal.mavrothal wrote:I believe my answer is addressing your question.musher0 wrote: If you'd kindly elaborate, we will be grateful..
You may want to ask a better question if you are not happy with the answers you are getting.
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)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
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
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)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
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.
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:
"Waiting for response", or something to that effect. - (68.17 KiB) Downloaded 328 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)