Multiple package installation/removal with PPM

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#16 Post by mavrothal »

Uploaded v5
v5 reports the overall space needed before the installation begins and can be cancelled at this point.
I have the feeling that is a bit pessimistic. ie reports that more space is required than it is actually used. Please test, particularly with "big" packages with many dependencies.

The other feature of v5 is that menu and gtk-icon update as well as checking for all user-installed packages happens at the end of the process and not after every installed package as in v1-4.

As far as I'm concern all the features are there. Now we need to find the bags and hopefully the solutions. Please test.

On related issue, I found during tests that not all of the 50-some files ( :shock: ) that PPM generates in /tmp are properly updated in every run resulting in strange results some times. So it is recommended that if you find some strange behavior, close PPM, run the attached clean_ppm_tmp.sh script and try again to see if the "problem" goes away.
Attachments
clean_ppm_tmp.sh.gz
remove /tmp files generated by PPM. Close PPM and run it.
(563 Bytes) Downloaded 375 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
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#17 Post by zigbert »

I'm working on converting ppm to use vector-icons.
... We need more icons :)
Attachments
Screenshot_2014-12-08_214911.jpg
(56.43 KiB) Downloaded 390 times

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

#18 Post by mavrothal »

mavrothal wrote:Uploaded v5
v5 reports the overall space needed before the installation begins and can be cancelled at this point.
I have the feeling that is a bit pessimistic.
Indeed it was.
Till the next version of the "ppm_multi" pet, the attached ppm_multi_5-sizefix.pet fixes that and now total space needed for all to-be-installed packages and their dependencies, is reported more accurately.
Please install this pet after you have installed the ppm_multi-5.pet

Edit: v6 is out and includes the changes added by the pet. The pet is removed to avoid confusion or addition to future releases.
Last edited by mavrothal on Wed 10 Dec 2014, 11:47, edited 2 times 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

#19 Post by mavrothal »

zigbert wrote:I'm working on converting ppm to use vector-icons.
Isn't this going to make it more difficult to port in older puppy versions?

I said I'm not going to support older puppies but at this point I think that the current pet should work OK in some of them and easily modified by the respective "puppyteer" ( :D ) to work with others (tested in slacko 5.7 OK. Precise 5.7.2 has issues)
== [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:

#20 Post by zigbert »

mavrothal wrote:Isn't this going to make it more difficult to port in older puppy versions?
I can make it work for both mini-icons and the woof-vectors. - simple.

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

#21 Post by mavrothal »

zigbert wrote:
mavrothal wrote:Isn't this going to make it more difficult to port in older puppy versions?
I can make it work for both mini-icons and the woof-vectors. - simple.
It's all yours then :D

Actually besides the main window, I think that all the GUI elements need some revisiting as they look like the patchwork that they are! A mix of gtkdialog v2, 3 and 4, gtkdialog-splash, pupdialog, xmessage and what not.
Even independent of the multiple package install/remove changes, the PPM GUI elements need a second look.
== [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:

#22 Post by zigbert »

mavrothal wrote:
zigbert wrote:
mavrothal wrote:Isn't this going to make it more difficult to port in older puppy versions?
I can make it work for both mini-icons and the woof-vectors. - simple.
It's all yours then :D

Actually besides the main window, I think that all the GUI elements need some revisiting as they look like the patchwork that they are! A mix of gtkdialog v2, 3 and 4, gtkdialog-splash, pupdialog, xmessage and what not.
Even independent of the multiple package install/remove changes, the PPM GUI elements need a second look.
Let's take it step by step. I fix what I see during my digging, but I am not happy with 'fixing' stuff I can't test. In my Woof-gui-tour, I saw many boxes, I could have converted to libstardust, but I didn't, simply because I could not test the result... Another issue is that using libstardust (my choice) when staying compatible with older Puppies.

Maybe offer your version outside Woof, and include my extended gui into Woof ?

Sigmund


Sigmund

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

#23 Post by mavrothal »

zigbert wrote: Another issue is that using libstardust (my choice) when staying compatible with older Puppies.

Maybe offer your version outside Woof, and include my extended gui into Woof ?

Sigmund
On a second thought I think we better look forward.
If anything libsturdust, could be offered as a dependency pet for older puppies. Although, I think that users of older puppies are usually happy with what they have and do not bother to change it.

Regarding woof, I think you may want to keep GUI changes regarding multiple package handling and traditional PPM elements separately, or at least in different patch-sets.
I would not feel comfortable to put the multiple package handling changes in woof without extensive testing, and this may take some time with the current rate... :(
== [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

#24 Post by mavrothal »

Version 6 of the "ppm_multi" pet and patches is out

This version provides the option to remove individual packages from the install/remove windows without restarting the whole process.
It also provides a more accurate calculation of the space needed for installation (though I think still a bit pessimistic...).

I can not think of anything else to add/remove.
The only thing I would like to add is the refresh of the installed packages window (INSTALLED_DIALOG) at the end of the removal process, but I have no idea how to do it. I can not even auto close it since it does not appear as a different process but rather as part of the MAIN_DIALOG process :?
Any ideas (Zig?...)


BTW here is the new PPM in action installing and uninstalling 3 packages and their dependencies 8)
== [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:

#25 Post by zigbert »

mavrothal wrote:Any ideas (Zig?...)
I'll fix that... but let's see what interface we end up with before dealing with such minor issues :)

What I miss is a constant message showing up during ALL installing processes. It pops up splashes and terminals here and there, and when installing (many) big packages it's hard to know when the process is actual done.

You announced version 5 as the last one - until version 6. I am curios of v7 :D I'll wait a bit longer before I adds my code to your code. I have still a bunch of icons to work with...


Sigmund

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

#26 Post by mavrothal »

zigbert wrote:What I miss is a constant message showing up during ALL installing processes. It pops up splashes and terminals here and there, and when installing (many) big packages it's hard to know when the process is actual done.
Yes this would be nice. The problem I see is that we have no way to estimate the overall time/processes needed and thus provide a progress bar or something. In the remove process (which is much more quite) I have every package "announced" when removed but this is not what we really need. If you have any idea...

zigbert wrote:You announced version 5 as the last one - until version 6. I am curios of v7 :D I'll wait a bit longer before I adds my code to your code. I have still a bunch of icons to work with...
I said is final feature wise and indeed it is. I just added the 'remove from the list' function because I would like to have something "complete" for older puppies too.
I really do not intend to add any other feature (I can not think of anything :roll: ). However I believe that some changes in the non-GUI code may occur. For example the report window shows the success/failure or the original packages but not any dependencies. Adding code to add them in the report window should not affect the GUI code. Would 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
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#27 Post by zigbert »

mavrothal wrote:Adding code to add them in the report window should not affect the GUI code. Would it?
If I shall port boxes to libstardust, I guess it will affect the same files.


Sigmund

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

#28 Post by mavrothal »

zigbert wrote:
mavrothal wrote:Adding code to add them in the report window should not affect the GUI code. Would it?
If I shall port boxes to libstardust, I guess it will affect the same files.
I probably miss something, but if a box presents to the user the content of a file, say /tmp/pkgs_to_install_done, and we change the content of this file to also contain installed dependencies, why this would affect the transition from a "classic" gtkdialog box to libstardust?

Anyway, a v7 can not be excluded specially if some testing by other people too, is actually done...
== [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

#29 Post by mavrothal »

zigbert wrote:What I miss is a constant message showing up during ALL installing processes. It pops up splashes and terminals here and there, and when installing (many) big packages it's hard to know when the process is actual done.
I do not know if this will make your life any easier :roll: but the attach pet has all information splashes and terminals removed when in "auto" mode (errors are still reported) and logs to /tmp/PPM_LOGs/ instead.
Attachments
ppm_multi-6-quiet.pet
(45.43 KiB) Downloaded 356 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

#30 Post by gcmartin »

@Mavrothal, I rather like this contribution.

It offer great utility and I can see how this would be useful across several distros. For example, it I maintained a list of PETs for a given PUP that are individual to one's needs, I could used this list to install PETs on any distro going forward as it would maintain consistent packaging automatically resolving dependency issues as one goes.

Thanks.

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

#31 Post by mavrothal »

Version 7 is uploaded
This is a bugfix update, with no new functions or GUI elements.
See first post for details.
v7 is tested (and fixed) to work in full installs too. :D

Zig, notice that this is not the "quite" version posted in the previous page.
If you think you can get a progress window/bar going we may want to adopt the quite version before we diverse too much from v6.
Alternatively if a progress bar/window is unlikely we can run everything in a small terminal window (with small fonts etc) similar to what the "details" window of the Synaptics package-manager/GUI does, to basically show to the user that things are going on.
== [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:

#32 Post by zigbert »

mavrothal
It's a bit hectic around here atm, but next weekend I get Christmas holiday, so if I could be 'in charge' and implement gui-stuff from next weekend, it would be great. You get it back as fast as I am ready. I fear there is plenty of stuff to improve, so it may take some days.

When it comes to a progressbar, I have not looked into it enough to tell the answer. What I would like to include is a statusbar with info of your space-calculation and probably some progress info...


Sigmund

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

#33 Post by mavrothal »

zigbert wrote:I could be 'in charge' and implement gui-stuff from next weekend, it would be great.
OK. Hopefully some people will actually test it and report some bugs to hopefully solve by then.

In the mean time I may go ahead and implement the "quite" mode with a small rolling terminal window to indicate progress (pic)
Attachments
remove_terminal.png
(4.17 KiB) Downloaded 428 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] ==

stemsee

#34 Post by stemsee »

I will be testing it thoroughly.

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

#35 Post by mavrothal »

stemsee wrote:I will be testing it thoroughly.
You better try v8 then :wink:
Is "silent", fixes a bug I found (hopefully you find more) and removed the Xdialog with the install options. This in now moved to the install/removed list window.
With the previous implementation if you had just one package to install you needed 5 clicks and 3 windows :shock: . As many as in the classic method.
Now you need only 2 as I also eliminate the confirmation after the space-needed check. Just installs silently if sufficient or aborts and warns if not.

Note:The 1st download of v8 is a bit different then the current v8. Please re-download if you were the first to get v8
== [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