On Sat, Jun 14, 2008 at 2:10 PM, Xavier <[EMAIL PROTECTED]> wrote:
> Dan McGee wrote:
>> They shared about 75% of their code, so there is no real reason we should
>> maintain them separately. Merge the differences accordingly and add a check
>> based on the basename of the command used to decide what behavior to follow.
>>
>> Signed-off-by: Dan McGee<[EMAIL PROTECTED]>
>
> I loved that idea, but it turned out to be more complicated than I
> expected and hoped. Especially the fact that we need to do the check
> (repo-add or repo-remove) several times.

The number of small differences could probably be reduced, but the
main intention of this patch was just to get it in one script. I would
guess we could do some things a bit differently, notably the
test_repo_db_file() part which should not really need to know which
script is being called. The only other part which might be changeable
is the "all packages removed" section, which I am not too keen on
anyway- we are counting on a failure code from ls to get us there.

-Dan

_______________________________________________
pacman-dev mailing list
[email protected]
http://archlinux.org/mailman/listinfo/pacman-dev

Reply via email to