[gobolinux-devel] Detached Programs support (general)

Aitor Pérez Iturri atuin at phreaker.net
Wed Apr 4 03:05:02 UTC 2007


El Wed, 4 Apr 2007 00:57:49 -0300
"Hisham Muhammad" <hisham.hm at gmail.com> escribi__:
I have prepared both scripts.
RemoveProgram has now --follow option to follow links in /Programs when
remove, but by default it only disable detached programs.

I have a little question, there is any special reason to use
RemoveBroken when unlinking? This can not be use with detached programs
(you can't not move /Depot/Programs/MyApp
to /Depot/Programs/MyApp-Disabled) and i think that having different
ways to do the same thing is not very nice. Currently i used this
method for both kind of programs:

for file in $filesdir
	do
		readlink $file | Quiet grep "^$programdir" &&
Is_Writable $file && echo unlink $file done

What do you think? Is rigth to implement this?

Greets
Aitor.

-- 
... Bardulia quae nunc vocatur Castella ...



More information about the gobolinux-devel mailing list