Page 1 of 1

easypackage

Posted: Sun 23 Jan 2011, 21:40
by sc0ttman
easypackage
cli tool for combining pets into pet or sfs

This is a very simple little tool that will combine the pets in a given directory into either a pet file or sfs file.
There is little error checking, but just make sure the directory you point it to contains only pets and you will be fine.

It's offered as is, in case anyone wants it.

It requires Xdialog and dir2pet.

Usage:

Code: Select all

easypackage [directory]

Posted: Sun 23 Jan 2011, 22:47
by neurino
This could be a great resource every time I need to start up with a new save file and I don't want to get bored installing 20+ little pets: I simply could use this tool and make a unique pet and get things installed in a few clicks...

but...

what about if I want to uninstall just one of the 20+ packages, say to upgrade it or whatever...

it would be veery handy the ability to have a package manager that will install all pets in a row, something like apt-get for local files:

Code: Select all

easypackage cmus-2.3.3-w5.pet p7zip-4.58.pet edit_sfs-2.1.pet pwidgets-2.3.1.pet ...
so, for example, I just can group my pets in a folder and run

Code: Select all

easypackage *.pet

Posted: Sun 23 Jan 2011, 23:34
by jemimah
Something like

Code: Select all

for i in `ls *.pet` ; do 
   petget $i
done
should do the job. You'll still have to press OK a lot.,

Posted: Mon 24 Jan 2011, 04:47
by seaside
Or maybe have your own auto-keypuncher. :D

Code: Select all

for i in *.pet ; do
   petget $i & xdotool key Return
   sleep 2 # probably needs sleep adjusting here and below
   xdotool key Return
   sleep 2
done
s

Posted: Mon 24 Jan 2011, 08:11
by neurino
jemimah wrote: You'll still have to press OK a lot.,
It's right what I'd like to duck...

I give auto-keypuncher a try 8)

Anyway the fact in puppy there's no pure cli package installing / removing is strange... does petget work without X?

Posted: Mon 24 Jan 2011, 18:58
by sc0ttman
yeah sorry neurino, this is only for making packages, not installing them.

Posted: Mon 24 Jan 2011, 19:59
by neurino
Well I'm givin' a look at petget source and I'm goin' to edit it (in a new file...) to get rid of gtkdialog3 parts with simple prints to stdout and without user confirmation, also removing all non-pet-related code (deb, tgz|.txz, tar.gz).

All I need, and maybe also others want, is just a quick and dirty install all these pets I already tested.

Let's see... what sounds weird to me is no one already did it before so maybe there are difficulties I can't see now.

Posted: Wed 31 Aug 2011, 09:13
by battleshooter
Ah heck, I wish I discovered this a long time ago. All this while I've been extracting I don't know how many pets to make KDE sfses. Hah, ah well, at least I've discovered it today thanks to some Chinese spam bot ;)

Of course thanks to you too Scott :D

Battleshooter

Hum interressant / interesting

Posted: Tue 11 Sep 2012, 09:19
by Pelo
When we start a new session by puppy pfix=ram, it would be very quicker to have a package of usual things we do to make our personal desk browser, etc... la routine.

easy package seems to do that : a package of pets.

In fact I am looking for a macro.

At the end of the first session, we have the sum of changes registered somewhere. Where ?

Is it possible to do a pet with that ? Merci messieurs les techniciens.

Re: Hum interressant / interesting

Posted: Tue 11 Sep 2012, 15:08
by tlchost
Pelo wrote: In fact I am looking for a macro.
I like the idea of a macro that installs a series of individual pets, or indirvidual pets in a directory. The advantage is that if they are installed
individually, you can uninstall a single one. I don't belive you can do that with the combined pet approach.

Thom

Re: Hum interressant / interesting

Posted: Tue 11 Sep 2012, 23:21
by RSH
tlchost wrote:
Pelo wrote: In fact I am looking for a macro.
I like the idea of a macro that installs a series of individual pets, or indirvidual pets in a directory. The advantage is that if they are installed
individually, you can uninstall a single one. I don't belive you can do that with the combined pet approach.

Thom
Hi.

I have made something like that in LazY Puppy. You can do a right-click on a directory containing .pet files and convert them all to sfs in batch function. Might be helpful to have a look at the applications in /root/my-roxapps inside LazY Puppy.

A really smart dog...

Posted: Wed 12 Sep 2012, 01:46
by RSH
Aaahhhh,

forget about the batch function to convert .pet to sfs. :lol:

LazY Puppy has already exactly what you want. The LazY Puppy Remaster Suite (/usr/local/lazy_remaster) is able to install all .pet files from a directory in front of running the remaster script.

Sometimes i do not have in mind, how smart this dog really is ! ! ! 8)

So, you can go to /usr/local/lazy_remaster and have a look at those two files:

- lp2_install_to_remaster
- lp2_pkginstall_on_remaster

Grab and modify those files for your own purposes, or, better solution:

Wait a few minutes until i have made my next post. Then there will be LazY-FBI, the (F)antastic (B)atch-Mode Pet-(I)nstaller. I have modified exactly those two files and made a .pet.

Using LazY-FBI you can do a right-click on a directory and then install all included .pet files.

Lazy Puppy is our future

Posted: Fri 15 Feb 2013, 15:33
by Pelo
Lazy Puppy is our future !
and I am wasting time exploring other distros !