FS#15561 - Upgrade only packages from the specified repository
Attached to Project:
Pacman
Opened by Vladimir Mitrovic (vl4dimir) - Saturday, 18 July 2009, 13:54 GMT
Opened by Vladimir Mitrovic (vl4dimir) - Saturday, 18 July 2009, 13:54 GMT
|
Details
Summary and Info:
It would be cool if pacman was able to update only packages that come from a certain repository. It could be implemented as a suboption for the -Su action, so for example one can do 'pacman -Sur core', which would update only packages that come from the core repository. |
This task depends upon
But it can cause problem with -Sur community, e.g. if the dependency is in the other repository, like extra or core, so maybe it would give an error or to allow it for dependencies to install from other repository.
pacman -Syu core/* seems good for me too.
And I am not sure you understood Dan's message, but it's not very clear.
"If we hadn't done this, I would suggest a command like "pacman -Syu core/*" could be used"
So since we did all this stuff, we cannot use "pacman -Syu core/*", right ?
If we allowed regex to be used in -S operation, it would make much more sense to match with packages from sync repo and not from local repo.
I mean, if you do pacman -S gstreamer* , you don't care about your locally installed packages, you want to install all gstreamer packages in sync repo.
So "pacman -Syu core/*" would upgrade/install all packages from core, which is different from what we wanted here.
pacman -Sy --repo somerepo
Then an internal test something like
test3rdparty()
if [[ "$1" != core ]]&&[[ "$1" != community ]]&&[[ "$1" != extra ]]; then
OK update "$1"
else
No - core, community, extra must be updated together.
fi
same would apply to 'pacman -Su --repo somerepo'
NativeRepos = core extra community
Then you could add options to include or exclude only native or foreign repos and define special behaviour.