Activate/Deactivate bundles

Programming issues and discussion
simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: Activate/Deactivate bundles

Postby simargl » 01 Dec 2013, 20:28

you need to change to that directory /mnt/sda1/alphaOS/ and then activate bundle with
bundle -a devel_14.sb

script takes $2 argument as bundle name, and then make mount point directory with that name

ncmprhnsbl
Competent
Posts: 36
Joined: 09 Nov 2013, 22:44

Re: Activate/Deactivate bundles

Postby ncmprhnsbl » 02 Dec 2013, 03:07

aha so this is why when trying to make custom command in spacefm with 'bundle -a %f ' it fails because %f gives absolute path.

something i noticed, bundles activated on the fly don't register as installed (they dont show up in /var/lib/pacman/local)
so when installing new programs, doubling up packages sometimes
they have to be in modules folder at activation. tho this could be a feature, to avoid dev_14.sb dependancies for example .

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: Activate/Deactivate bundles

Postby simargl » 02 Dec 2013, 08:15

When bundles are made with makesb script they will have entries in /var/lib/pacman/local, so pacman will know what's installed, but will not know what file belongs to a package.

All bundles are mounted in /mnt/live/memory/bundles directory

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: Activate/Deactivate bundles

Postby Scooby » 02 Dec 2013, 12:23

simargl wrote:you need to change to that directory /mnt/sda1/alphaOS/ and then activate bundle with
bundle -a devel_14.sb

script takes $2 argument as bundle name, and then make mount point directory with that name


Yep I know it works this way!

But it would be more useful if you could do it from any dir.


Now that I think about I know I a wrote a wrapper bash-function for this somewhere
got to find it again. Got shit spread over several OSés and savefiles

A simple toggle. If bundle not loadeed then load it else
if bundle loaded then unload. No restrictions on path.

For me that flows my work at terminal

ncmprhnsbl
Competent
Posts: 36
Joined: 09 Nov 2013, 22:44

Re: Activate/Deactivate bundles

Postby ncmprhnsbl » 04 Dec 2013, 00:17

simargl wrote:When bundles are made with makesb script they will have entries in /var/lib/pacman/local, so pacman will know what's installed, but will not know what file belongs to a package.

All bundles are mounted in /mnt/live/memory/bundles directory

ok, seems i got a little confused..

also, seem to need to run this after 'bundle -a foo.sb' for some things to work:
gtk-update-icon-cache -f /usr/share/icons/hicolor

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: Activate/Deactivate bundles

Postby simargl » 04 Dec 2013, 23:15

gtk-update-icon-cache will run in post_activate actions, if it's needed

that is if bundle contains directory /usr/share/icons/hicolor


Return to “Scripting and Programming”

Who is online

Users browsing this forum: No registered users and 11 guests

cron