Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Oct 2008 11:09:57 +0300
From:      Marin Atanasov <dnaeon@gmail.com>
To:        Michel Talon <talon@lpthe.jussieu.fr>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: My interactive version of pkg_add
Message-ID:  <48E5D355.6050408@gmail.com>
In-Reply-To: <20081002123647.GA54217@lpthe.jussieu.fr>
References:  <20081002123647.GA54217@lpthe.jussieu.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
Michel Talon wrote:
> Marcin Wisnicki wrote:
>
>   
>> Unless I'm missing something there needs to be a MOVED file or ideally
>> something like it that has pkgnames (with versions) for a binary
>> package update tool to work.
>>     
>
> First, congratulations to Marin Atanasov for having completed his
> program! As far as i understand, Marin's goal was simpler that an
> upgrade tool for binary packages, it was simply an install tool,
> allowing to choose interactively on various repositories. I think this
> goal is fulfilled and is useful. 
>
> For upgrading, the situation is vastly more complicated, indeed one
> needs to read MOVED and use information here, in particular follow the
> name changes of ports. For example you may have a port whose proper
> upgrade has a different name, etc. or ports have disappeared, etc.
> I am not even sure that a completely bullet proof system can be written
> within the limits of the present FreeBSD ports system. 
>
> I am quite sure that one of the keys of Marcin's success is having
> limited his aims. Similarly the excellent portmaster tool for upgrading
> owes its success to strict limitation to upgrade from source, using the
> available preexisting pkg_* tools - plus a lot of polishing.
>
>
>
>   
Yeap, as Michel Talon noticed I'm not trying to create a package upgrade 
tool,
but just a tool for installing packages in an interactive manner. I 
think that
there are already enough and good package upgrade tools - portmaster for
example would do the job.

My program is designed to make easier the process of finding and install 
the packages.
I've written some functions which search for a file pattern when we are 
performing a
local and remote search - then the information is being stored in a 
stack and at the end
of the code we have a single system() call which executes `pkg_add 
[pkgname]'.
So if one have looked at the code will see that actually my program 
gives the
interactive interface and for installing - it uses the existing pkg_add 
tool.

Other pkg_* commands could be supported by the program, but I don't see 
a use of it - except maybe
the purpose mentioned above for a package upgrade tool.

Btw, what would you say about this name `pkg_add_it' - 'pkg_add 
Interactive Tool'? :)

Cheers,
Marin

-- 
Marin Atanasov
dnaeon AT gmail DOT com
daemon AT unix-heaven DOT org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48E5D355.6050408>