On 4/4/07, Aitor Pérez Iturri <[EMAIL PROTECTED]> wrote:
> El Wed, 4 Apr 2007 00:57:49 -0300
> "Hisham Muhammad" <[EMAIL PROTECTED]> 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?

Maybe the links of detached programs under /System/Links should still
point to /Programs/... That way, when the symlink /Programs/MyApp is
moved to MyApp-Disabled (or removed), it would generate broken links
like a non-detached program would do.

-- Hisham
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to