[Frugalware-devel] A small idea for pacman!
Wael Nasreddine
wael at nasreddine.com
Sun Feb 4 01:02:01 CET 2007
On Thu, Feb 01, 2007 at 04:02:14PM +0100, VMiklos <vmiklos at frugalware.org> wrote:
> On Sun, Jan 28, 2007 at 10:46:57AM +0100, Wael Nasreddine <wael at nasreddine.com> wrote:
> > That works as well (but pacman will not be updated first), anyway it is not
> > possible then make it possible, add something like (--no-pacman-first) option
> > which will make the question 'no', because having chroot run sysupgrade twice is
> > a little irritating specially when the system is not that powerfull by itself
>
> hm i was wrong. i've pushed a fix for makepkg which avoids running -Su
> two times without modifying pacman. the idea:
>
> the old method was:
> -Syu --noconfirm (upgrade all or upgrade pacman only)
> -Su --noconfirm (do nothing or upgrade all)
> the new method:
> -Sy $PACMAN --ask 95 (upgrade pacman if no newer version available)
> -Su (upgrade all)
>
> the trick is the already existing --ask option. 95 is 0x01 + 0x02 + 0x04
> + 0x08 + 0x10 + 0x40, almost the same as --noconfirm but it won't say
> yes to the "local version is up2date, upgrade anyway?" question
>
> please test, it seems to be okay here
>
> udv / greetings,
> VMiklos
>
That's a very nice Idea, I'm not at home so I can't test it, but it seem
a very good trick, Finally we don't have to wait Upgrade to be done 2
times :D, Thx VMiklos :)
More information about the Frugalware-devel
mailing list