Multiple package installation/removal with PPM

Under development: PCMCIA, wireless, etc.
Message
Author
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#261 Post by zigbert »

all xpm icons should be gone by now...

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#262 Post by radky »

mavrothal,

Re: Fbpanel and new PPM

PPM -> Configure -> Misc -> 'Do not show the terminal with PPM actions'

In auto mode, with the above terminal option selected (checked), the new PPM does not kill fbpanel, but the panel is killed if the terminal option is unchecked. This seems true for the standard Puppy rxvt/urxvt options.

However, on line 167 of installwindow.sh and line 154 of removewindow.sh, if the long rxvt command line is replaced with an alternate terminal command that supports 'hold open', then installing packages through PPM does not kill fbpanel, even if 'Do not show the terminal with PPM actions' is unchecked.

It seems the 'auto mode + terminal mode' of PPM is a problematic combination for fbpanel and possibly lxpanel. Additionally, the installation text scrolls so quickly in rxvt, it is really unreadable and the terminal closes before you can scroll back for review.

So, is there any reason to offer the terminal mode as a GUI option at all? Maybe, it would suffice to redirect that information to a log file for later review if necessary.

Thanks
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

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

#263 Post by mavrothal »

Good catch radky.
I do not have the time now, but just change line 475 of installpreview.sh to

Code: Select all

nohup /usr/sbin/fixmenus
and see if this works
== [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

#264 Post by mavrothal »

mavrothal wrote: just change line 475 of installpreview.sh to

Code: Select all

nohup /usr/sbin/fixmenus
and see if this works
Yep, it does :D
Here is version 1.4 of the pet.
Attachments
ppm_auto-1.4_2701.pet
(67.85 KiB) Downloaded 226 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] ==

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#265 Post by radky »

Fbpanel is relieved, grateful and overjoyed :)

Thank you mavrothal and peebee
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#266 Post by peebee »

radky wrote:Fbpanel is relieved, grateful and overjoyed :)

Thank you mavrothal and peebee
Confirmed - 1.4 fixes lxpanel problems as well - thanks
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

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

#267 Post by mavrothal »

peebee wrote:
radky wrote:Fbpanel is relieved, grateful and overjoyed :)

Thank you mavrothal and peebee
Confirmed - 1.4 fixes lxpanel problems as well - thanks
One more bug gone then :D

Anybody knows how to make the appearance of a check button conditional in gtkdialog? I tried with:
if $condition; then EXTRA_DIALOG="..." ;fi
and then to insert ${EXTRA_DIALOG} in the main GUI dialog, but fails miserably with some syntax error no matter how many symbols I escaped with backslash :twisted:
The dialog in question is:

Code: Select all

<checkbox>
        <label>'$(gettext "Skip package size check when more than 4GB of storage is available")'</label>
        <variable>CATEGORY_SC</variable>'
        [ "$(</var/local/petget/sc_category)" = "true" ] && S=$S'<default>true</default>'
      S=$S'</checkbox>
When tried directly with
<checkbox condition="command_is_true(...)">
was just ignored :evil:
== [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

#268 Post by mavrothal »

Here is v1.5.
Should be pretty "final" (last famous words :P )
Requires libstardust

Check changes here
Attachments
ppm_auto-1.5_2901.pet
(68.37 KiB) Downloaded 204 times
Last edited by mavrothal on Fri 30 Jan 2015, 13:56, 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
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#269 Post by peebee »

mavrothal wrote:Here is v1.5.
Should be pretty "final" (last famous words :P )

Check changes here
Installed 1.5 onto Slacko5.9.3 (Slacko6Beta2).........

Clicked on a pet - clicked "yes" on the screen with a read warning triangle - nothing happened - install did not occur.

Ran petget the same .pet in a terminal - no error messages just exited when the yes button was clicked.

Wondering why 1.5 doesn't work on Slacko5.9.3??

Thanks
peebee
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

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

#270 Post by mavrothal »

peebee wrote:
mavrothal wrote:Here is v1.5.
Should be pretty "final" (last famous words :P )

Check changes here
Installed 1.5 onto Slacko5.9.3 (Slacko6Beta2).........

Clicked on a pet - clicked "yes" on the screen with a read warning triangle - nothing happened - install did not occur.

Ran petget the same .pet in a terminal - no error messages just exited when the yes button was clicked.

Wondering why 1.5 doesn't work on Slacko5.9.3??

Thanks
peebee
If you are not running the latest woof build (ie tahr 6.0.1) you must first install libstartdust for it to work.
It fails after the yes/no dialog because it can not sence the "yes" in its absence (though this could be looked at if Zig gets a chance.). Install libstardust and it will work fine in slacko (and most 5.5+ puppies).

@Zigbert what would be a characteristic file/condition to ensure that the latest libstartdust version is install so a pinstall script could check and warn/prompt about it?
== [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
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#271 Post by MochiMoppel »

Clicking on an installed pkg in classic_UI uninstalls it without confirmation. You may want to correct line 45 of removepreview.sh:

if [ ! -f /tmp/remove_pets_quietly ] && [ ! "$DISPLAY" ]; then
. /usr/lib/gtkdialog/box_yesno "$(gettext 'Puppy Package Manager')" "$(gettext "Do you want to uninstall package")" "<b>${DB_pkgname}</b>"


Change this to [ "$DISPLAY" ]

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#272 Post by zigbert »

mavrothal wrote:@Zigbert what would be a characteristic file/condition to ensure that the latest libstartdust version is install so a pinstall script could check and warn/prompt about it?
If /usr/share/pixmaps/puppy/building_block.svg is present, libstardust is ok.

BUT, /usr/lib/gtkdialog/box_yesno has been updated for ppm since then, so for those who are using the first libstardust pack that I uploaded here on the forum, things will still fail.

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

#273 Post by mavrothal »

MochiMoppel wrote:Clicking on an installed pkg in classic_UI uninstalls it without confirmation. You may want to correct line 45 of removepreview.sh:

if [ ! -f /tmp/remove_pets_quietly ] && [ ! "$DISPLAY" ]; then
. /usr/lib/gtkdialog/box_yesno "$(gettext 'Puppy Package Manager')" "$(gettext "Do you want to uninstall package")" "<b>${DB_pkgname}</b>"


Change this to [ "$DISPLAY" ]
Thanks. Fixed

@Zigbert. I'm confused. Does the presence of /usr/share/pixmaps/puppy/building_block.svg ensures that the latest libstardust version is installed or not?
== [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
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#274 Post by zigbert »

mavrothal wrote:@Zigbert. I'm confused. Does the presence of /usr/share/pixmaps/puppy/building_block.svg ensures that the latest libstardust version is installed or not?
Yes, the icon was made for ppm and was not present ie. at the time Puppy Tahr 6 was released.

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

#275 Post by mavrothal »

zigbert wrote:
mavrothal wrote:@Zigbert. I'm confused. Does the presence of /usr/share/pixmaps/puppy/building_block.svg ensures that the latest libstardust version is installed or not?
Yes, the icon was made for ppm and was not present ie. at the time Puppy Tahr 6 was released.
OK thanks.
So here is a new pet that fixes the bug found by MochiMoppel above and has an install script that will check if libstartdust files are present and if not with open a browser on the download page.
Attachments
ppm_auto-1.5_3001.pet
(68.29 KiB) Downloaded 253 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] ==

totolanio
Posts: 202
Joined: Sun 04 Jan 2015, 02:19

#276 Post by totolanio »

ok awesome I was going to ask for one because it's a pain to delete all these packages which does not look related to eachother one by one.

It's safe to use now ? no more a beta ?

This will certainly be included in the upcoming puppies imo, so i'd like to know, what will happen if you have the pet installed in your savefile and it's also in the live CD ?
Main puppy used : LxPup tahr.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=97623]Multiple package installer/remover.[/url]

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

#277 Post by mavrothal »

totolanio wrote:It's safe to use now ? no more a beta ?

This will certainly be included in the upcoming puppies imo, so i'd like to know, what will happen if you have the pet installed in your savefile and it's also in the live CD ?
Yes. No.

Whatever is in your savefile supersedes what is in the CD/main-SFS.
== [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

#278 Post by mavrothal »

Going full circle in my recent endeavour with PPM I implemented the user-defined download folder option in PPM_auto. 8)
So here is the v1.6 pet. (see change log for other changes/fixes)

Is probably an overkill but I would appreciate input either way. Should it stay or shout it go?
Bug reports associated with the implementation are also welcome.
Attachments
ppm_auto-1.6_3101.pet
(68.78 KiB) Downloaded 234 times
PPM_save_folder.jpg
(58.98 KiB) Downloaded 281 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] ==

gcmartin

#279 Post by gcmartin »

I like it, "stay"! 8) +1

This effort adds to user understanding, and controls they can exercise. I don't see a downside to exposing this.

Edit: After thinking about the vast majority of users I seen in my lifetime, I share this:
Most users who use this will use the defaults. Some want to redirect from the default will exercise the option. Others, will have multiple folders they would use for PET captures based upon how they use the folders. All use with the very best of intentions.

But, some of us will "forget" where they put things and end with all sort of folders that confuse them or they get lost in their own mire. We cannot protect from the few who would do so. Its the ONLY downside I can think of.

Thus, it's the developer's choice.
Great work by all.

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

#280 Post by mavrothal »

gcmartin wrote:
Thus, it's the developer's choice.
So... I should not been asking for opinions? :?
== [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] ==

Post Reply