[pacman-dev] Sodeps support
These patches add a -dd option which ignores the version of dependencies only and sodependencies. They are also available online at http://git.server-speed.net/users/flo/pacman/
-dd ignores only the version of a dependency being checked, but not the
package itself.
Signed-off-by: Florian Pritz
Support-by: brain0
Support-by: brain0
We don't check the version so we shouldn't confuse the user by showing
it in the warning.
Signed-off-by: Florian Pritz
On Fri, 1 Oct 2010 17:30:03 +0200, Florian Pritz
These patches add a -dd option which ignores the version of dependencies only and sodependencies.
They are also available online at http://git.server-speed.net/users/flo/pacman/
Someone please signoff the pacman patches (1 and 4) so Allan can merge.
On Fri, Oct 8, 2010 at 12:50 PM, Florian Pritz
On Fri, 1 Oct 2010 17:30:03 +0200, Florian Pritz
wrote: These patches add a -dd option which ignores the version of dependencies only and sodependencies.
They are also available online at http://git.server-speed.net/users/flo/pacman/
Someone please signoff the pacman patches (1 and 4) so Allan can merge.
make check failed with deptest001 : pacman -T 'foo>1' segfaulted because we don't have a transaction in this case. Added a quick helper that uses alpm_get_trans_flags and check for -1. Also slightly changed the second patch to do just once : if (nodeps) .... else .... http://code.toofishes.net/cgit/xavier/pacman.git/log/?h=sodeps
On 09/10/10 03:05, Xavier Chantry wrote:
On Fri, Oct 8, 2010 at 12:50 PM, Florian Pritz
wrote: On Fri, 1 Oct 2010 17:30:03 +0200, Florian Pritz
wrote: These patches add a -dd option which ignores the version of dependencies only and sodependencies.
They are also available online at http://git.server-speed.net/users/flo/pacman/
Someone please signoff the pacman patches (1 and 4) so Allan can merge.
make check failed with deptest001 : pacman -T 'foo>1' segfaulted because we don't have a transaction in this case.
Added a quick helper that uses alpm_get_trans_flags and check for -1. Also slightly changed the second patch to do just once : if (nodeps) .... else ....
http://code.toofishes.net/cgit/xavier/pacman.git/log/?h=sodeps
We probably also need a pactest or two for the -dd flag. Allan
Signed-off-by: Xavier Chantry
On 11/10/10 03:57, Xavier Chantry wrote:
Signed-off-by: Xavier Chantry
--- test/pacman/tests/sync-sdd1.py | 15 +++++++++++++++ test/pacman/tests/sync-sdd2.py | 15 +++++++++++++++ test/pacman/tests/sync-sdd3.py | 15 +++++++++++++++ 3 files changed, 45 insertions(+), 0 deletions(-) create mode 100644 test/pacman/tests/sync-sdd1.py create mode 100644 test/pacman/tests/sync-sdd2.py create mode 100644 test/pacman/tests/sync-sdd3.py
Are you proposing a new test naming scheme here too? Because I like it... Anyway, ack to the tests. Hopefully cases 2 and 3 were already covered, but it does not hurt to explicitly have these as a group. Allan
On Mon, Oct 11, 2010 at 3:52 AM, Allan McRae
On 11/10/10 03:57, Xavier Chantry wrote:
Signed-off-by: Xavier Chantry
--- test/pacman/tests/sync-sdd1.py | 15 +++++++++++++++ test/pacman/tests/sync-sdd2.py | 15 +++++++++++++++ test/pacman/tests/sync-sdd3.py | 15 +++++++++++++++ 3 files changed, 45 insertions(+), 0 deletions(-) create mode 100644 test/pacman/tests/sync-sdd1.py create mode 100644 test/pacman/tests/sync-sdd2.py create mode 100644 test/pacman/tests/sync-sdd3.py Are you proposing a new test naming scheme here too? Because I like it...
Anyway, ack to the tests. Hopefully cases 2 and 3 were already covered, but it does not hurt to explicitly have these as a group.
Well you spotted exactly the two problems I had. First I tried to look for a pactest with -S that failed because a versioned dependency I found provision022.py that almost suited my need. But then with this stupid numbering with almost complete disorder, I never know how to insert new pactests. On one hand, we had 'provision001' style naming describing a functionality, on the other hand 'sync001' which only gives the operation. I just mixed the two to create a new group. Also I thought it was a good illustration for -Sdd to show how -S, -Sd and -Sdd behave in the same situation.
participants (4)
-
Allan McRae
-
Florian Pritz
-
Florian Pritz
-
Xavier Chantry