(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 22 Sep 2020, 01:45
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
PPM: How to download packages into any directory
Moderators: Flash, Ian, JohnMurga
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 4 of 6 [85 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
greengeek


Joined: 20 Jul 2010
Posts: 5834
Location: Republic of Novo Zelande

PostPosted: Mon 01 Dec 2014, 04:03    Post subject:  

mavrothal wrote:
Version 9 should fix this as well as the one above reported by rg66.
Yep, v9 works perfectly for me - testing with Slacko 5.6 and setting destination directories either within or without of the save file works great.

Even if there is no further development this seems like good progress.

New feature request:
if there was one feature I would ask for it is the ability to set the download directory at the time you commence the download - rather than having a pre-configured destination in the depths of the PPM settings.

There might be times where you are downloading packages for two entirely separate purposes and wanting to store them in two entirely different directories. It would be nice to do so without delving into the PPM settings between the two downloads.
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3108

PostPosted: Mon 01 Dec 2014, 04:11    Post subject:  

greengeek wrote:

if there was one feature I would ask for it is the ability to set the download directory at the time you commence the download - rather than having a pre-configured destination in the depths of the PPM settings.

I think some may be annoyed if every time PPM asks where to download.

Keep in mind that although the configure window advises to restart PPM, changes in the download folder or in 'keep install pets' take effect as soon as you say "OK" and close the configure window and do not need a PPM restart.

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


Joined: 11 Oct 2009
Posts: 13981
Location: S.C. USA

PostPosted: Mon 01 Dec 2014, 04:44    Post subject:  

Quote:
Keep in mind that although the configure window advises to restart PPM, changes in the download folder or in 'keep install pets' take effect as soon as you say "OK" and close the configure window and do not need a PPM restart

I was wondering if that restart was really needed.
Thanks for the info!!

However, I think a PPM restart is still needed for some of the other config options.

I have turned over testing of this feature to the Puppy test lab.
(wonder what the 3 computers with yellow warning lights handle)
Puppy test lab.jpg
 Description   
 Filesize   109.15 KB
 Viewed   412 Time(s)

Puppy test lab.jpg


_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer)
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5834
Location: Republic of Novo Zelande

PostPosted: Mon 01 Dec 2014, 13:49    Post subject:  

Clearly the heat generated by the modern technology in the Puppy Test Lab requires getting half naked. Such dedication! "Don't try this at home!"
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 13981
Location: S.C. USA

PostPosted: Tue 02 Dec 2014, 00:38    Post subject:  

Test of install to USB flash drive formatted Fat32

Tahrpup 6.0 CE
Installed to USB flash drive
Partition sdb1
Formatted Fat32
Booted using a save file.

Installed version ppm_down_dir-9.pet.

PPM
Changed download locations to places not in save file.
Tried these two locations:
/mnt/home
Made a download directory on top layer of partition so it is /mnt/home/download
Tried download only and save installed pets too options.

All downloads went to what I had selected for a download location.
Seems to be working OK.

One thing did happen. Not sure if it is a problem or the way it should be for a USB flash drive install..
My PPM-> config->miscellaneous looks like this:
capture15919.png
 Description   
 Filesize   38.39 KB
 Viewed   278 Time(s)

capture15919.png


_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer)
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3108

PostPosted: Tue 02 Dec 2014, 01:51    Post subject:  

bigpup wrote:
Test of Puppy full install operation.
<latter>
Test of install to USB flash drive formatted Fat32

Now I understand why these people in the puppy test lab are half naked. Too much work Very Happy
Thanks for testing.

bigpup wrote:
One thing did happen.

Yes that is an additional option appearing when you run in pupmode 3, 7, 13. (ie when the save icon appears on the desktop)

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


Joined: 11 Oct 2009
Posts: 13981
Location: S.C. USA

PostPosted: Tue 02 Dec 2014, 02:08    Post subject:  

Quote:
Yes that is an additional option appearing when you run in pupmode 3, 7, 13. (ie when the save icon appears on the desktop)

Earlier in testing, when I got this result, I thought there was something wrong, because it did not match the example image you posted.

PPM is evil Evil or Very Mad making the miscellaneous window change it's looks, based on how Puppy is installed and running.

You must be smarter than the equipment or software you are using Shocked Laughing

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer)
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 13981
Location: S.C. USA

PostPosted: Tue 02 Dec 2014, 02:15    Post subject:  

Just to see what would happen.
if I typed in a download location, that did not exist, or typed it in wrong.
If I typed in a location on a partition that was not mounted.
capture26953.png
 Description   
 Filesize   5.3 KB
 Viewed   264 Time(s)

capture26953.png


_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer)
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 2084
Location: Japan

PostPosted: Tue 02 Dec 2014, 05:07    Post subject:  

mavrothal wrote:
OK. Please provide a patch set and possibly a pet that implements (with a GUI) this less complex process.
Please notice that will be nice if it also offers the option to save installed pets too.
Can't promise a "patch set", in fact can't promise anything, but in any case will document all changes. May take a while though ...
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3108

PostPosted: Tue 02 Dec 2014, 05:16    Post subject:  

MochiMoppel wrote:
mavrothal wrote:
OK. Please provide a patch set and possibly a pet that implements (with a GUI) this less complex process.
Please notice that will be nice if it also offers the option to save installed pets too.
Can't promise a "patch set", in fact can't promise anything, but in any case will document all changes. May take a while though ...

I do not know if it makes it any easier for you but in the ppm_down_dir-9.pet post I have all the changes in this pet (present in the patches too)

They are:
configure.sh: Add GUI code to check and save user options for download folder and to save installed pets
downloadpkgs.sh: Add code to look for presets (dir and save pet); cd to preset dir; change hard coded /root to preset dir;
installpkg.sh: double quote pre-existing variables so will accept path names with spaces; modify code so will not delete installed pets if we choose to save them
verifypkg.sh : double quote pre-existing variables so will accept path names with spaces
pet2tgz: modify code so will not delete installed pets if we choose to save them
download_file.sh: Add code to look for presets dir (only when called from PPM); cd to preset dir; double quote pre-existing variables so will accept path names with spaces; added download dir variable to wget command (this last one could be skipped since we already cd'ed in it but some extra precausion)

Would be nice if some of these changes can be eliminated and still maintain the same functionality.

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


Joined: 23 Jul 2012
Posts: 1160
Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!

PostPosted: Wed 03 Dec 2014, 05:56    Post subject:  

greengeek wrote:
New feature request:
if there was one feature I would ask for it is the ability to set the download directory at the time you commence the download - rather than having a pre-configured destination in the depths of the PPM settings.

There might be times where you are downloading packages for two entirely separate purposes and wanting to store them in two entirely different directories. It would be nice to do so without delving into the PPM settings between the two downloads.


I decided to have a go at this for something to do. Seems to be working but haven't tested it too much, proof of concept at the moment.

_________________
X-slacko-5b1 - X-tahr-2.0 - X-precise-2.4
X-series repo
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 2084
Location: Japan

PostPosted: Wed 03 Dec 2014, 11:29    Post subject:  

mavrothal wrote:
I do not know if it makes it any easier for you but in the ppm_down_dir-9.pet post I have all the changes in this pet (present in the patches too)
The patch files are the most valuable. I could work without the pets, but hardly without the patch files. Laughing

As it looks now the files verifypkg.sh and pet2tgz don't need to be changed, download_file only needs to have 2 variables changed to accomodated spaced files. Maybe we can leave wget untouched, but maybe we shouldn't ... I'll toss a coin.

Haven't touched the GUI yet. What I also haven't looked at yet: petget. When a user doubleclicks a locally saved pet, petget "downloads" the file to /root , calls installpkg.sh and after installation deletes the pets from /root, very similar to an unpatched download_file.sh. Needs fixing, but will have to wait.
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3108

PostPosted: Wed 03 Dec 2014, 11:44    Post subject:  

MochiMoppel wrote:
What I also haven't looked at yet: petget. When a user doubleclicks a locally saved pet, petget "downloads" the file to /root , calls installpkg.sh and after installation deletes the pets from /root, very similar to an unpatched download_file.sh. Needs fixing, but will have to wait.

petget is no harm since it does not delete the original pet, even if it is in root.
Yes could be using the defined directory for consistency but...

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

Last edited by mavrothal on Wed 03 Dec 2014, 16:04; edited 2 times in total
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5834
Location: Republic of Novo Zelande

PostPosted: Wed 03 Dec 2014, 13:45    Post subject:  

rg66 wrote:
I decided to have a go at this for something to do. Seems to be working but haven't tested it too much, proof of concept at the moment.
Looks like its working fine. I only use the PPM to access packages that I believe have been 'approved' with the particular puppy and the ability to select the destination directory for such pets would be handy. I'm less concened about what directory is used when i click 'install' - as i have already made a decision at that time that I am committing to the pet.

It is when i want to inspect the pet or save for later use that i want to change the destination directory.

(I guess what I am saying is - if it defaults to /root for install that is fine by me as long as it asks me for destintion directory when I choose 'download only')
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 13981
Location: S.C. USA

PostPosted: Wed 03 Dec 2014, 14:33    Post subject:  

Just adding to the discussion.
Just an idea to think about.

Being able to change the default download location is a good feature. What you have done works and I like and use it.

I too was looking for a download location option as Greengeek talks about.

What I was originally thinking was the way a web browser works when you choose to download something.
You click on download and a Window pops up giving you the ability to choose the download location.
If what is already set looks good you do nothing.
If you want to change the location you enter it or navigate to it.
Basically that change now becomes the default location.
Example what you would see for a pop up window:
capture13965.png
 Description   
 Filesize   8.21 KB
 Viewed   138 Time(s)

capture13965.png


_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 6 [85 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0939s ][ Queries: 12 (0.0271s) ][ GZIP on ]