Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 11 Dec 2019, 10:38
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Multiple package installation/removal with PPM
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 24 [351 Posts]   Goto page: Previous 1, 2, 3, 4, ..., 22, 23, 24 Next
Author Message
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Mon 08 Dec 2014, 14:27    Post subject:  

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 ( Shocked ) 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.
clean_ppm_tmp.sh.gz
Description  remove /tmp files generated by PPM. Close PPM and run it.
gz

 Download 
Filename  clean_ppm_tmp.sh.gz 
Filesize  563 Bytes 
Downloaded  311 Time(s) 

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 6608
Location: Valåmoen, Norway

PostPosted: Mon 08 Dec 2014, 16:53    Post subject:  

I'm working on converting ppm to use vector-icons.
... We need more icons Smile
Screenshot_2014-12-08_214911.jpg
Description 
jpg

 Download 
Filename  Screenshot_2014-12-08_214911.jpg 
Filesize  56.43 KB 
Downloaded  360 Time(s) 

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Tue 09 Dec 2014, 05:54    Post subject:  

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.

_________________
== Here is how to solve your Linux problems fast ==

Last edited by mavrothal on Wed 10 Dec 2014, 07:47; edited 2 times in total
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Tue 09 Dec 2014, 06:53    Post subject:  

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" ( Very Happy ) to work with others (tested in slacko 5.7 OK. Precise 5.7.2 has issues)

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 6608
Location: Valåmoen, Norway

PostPosted: Tue 09 Dec 2014, 10:50    Post subject:  

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.

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Tue 09 Dec 2014, 12:56    Post subject:  

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 Very Happy

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.

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 6608
Location: Valåmoen, Norway

PostPosted: Tue 09 Dec 2014, 13:39    Post subject:  

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 Very Happy

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

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Tue 09 Dec 2014, 14:06    Post subject:  

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... Sad

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Wed 10 Dec 2014, 07:59    Post subject:
Subject description: version 6. final(?)
 

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 Confused
Any ideas (Zig?...)


BTW here is the new PPM in action installing and uninstalling 3 packages and their dependencies Cool

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 6608
Location: Valåmoen, Norway

PostPosted: Wed 10 Dec 2014, 12:58    Post subject:
Subject description: version 6. final(?)
 

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 Smile

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 Very Happy 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

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Wed 10 Dec 2014, 13:29    Post subject:
Subject description: version 6. final(?)
 

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 Very Happy 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 Rolling Eyes ). 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?

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 6608
Location: Valåmoen, Norway

PostPosted: Wed 10 Dec 2014, 16:13    Post subject:
Subject description: version 6. final(?)
 

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

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Wed 10 Dec 2014, 17:58    Post subject:
Subject description: version 6. final(?)
 

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...

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3089

PostPosted: Thu 11 Dec 2014, 08:25    Post subject:
Subject description: version 6. final(?)
 

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 Rolling Eyes 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.
ppm_multi-6-quiet.pet
Description 
pet

 Download 
Filename  ppm_multi-6-quiet.pet 
Filesize  45.43 KB 
Downloaded  308 Time(s) 

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 6730
Location: Earth

PostPosted: Thu 11 Dec 2014, 19:07    Post subject:  

@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.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engines or use DogPile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 24 [351 Posts]   Goto page: Previous 1, 2, 3, 4, ..., 22, 23, 24 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0695s ][ Queries: 12 (0.0140s) ][ GZIP on ]