[pacman-dev] [PATCH] Warn when synchronizing without upgrading (-Sy)
Xavier Chantry
chantry.xavier at gmail.com
Wed Nov 17 23:15:57 CET 2010
On Wed, Nov 17, 2010 at 10:53 PM, Evangelos Foutras <foutrelis at gmail.com> wrote:
>
> It is true that special cases exist. Unfortunately, I can't think of a
> way to handle them.
>
You might need to store a state on the disk. Could be a 'need_upgrade'
flag you enable after a refresh operation and disable after a
sysupgrade transaction. When flag is enabled, the only sync operation
allowed is sysupgrade.
Or a timestamp of last sync and last sysupgrade.
Alternatively, without a state, you can just check if there are
upgrades before installing. Almost like forcing every -S pkg into a
-Su pkg.
Probably lots of way to handle it, but I don't think any needs to be
implemented.
More information about the pacman-dev
mailing list