[wpkg-users] [Bug 185] Add more options to the query command line switch
bugzilla-daemon at bugzilla.wpkg.org
bugzilla-daemon at bugzilla.wpkg.org
Wed Sep 14 22:16:29 CEST 2011
http://bugzilla.wpkg.org/show_bug.cgi?id=185
Rainer Meier <r.meier at wpkg.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |r.meier at wpkg.org
Resolution| |FIXED
--- Comment #1 from Rainer Meier <r.meier at wpkg.org> ---
Hi Stefan,
Well, this request looks easy to do but it causing really A LOT of
restructuring in order to do it efficiently and re-use existing WPKG code in
order to avoid implementing the detection of upgrades/downgrades/installs and
removes more than once (which would have high potential of being broken due to
future changes).
I think the effort was worth it. Now the query can be used to retrieve a full
list of changes which "would" be performed by WPKG when you do a
synchronization (see the "m" option). The result shall be the same as doing a
dry-run and parsing the output which is rather difficult to do.
Here is a change log:
NEW: Implemented new options for the /query argument. It now supports the
following options:
a Query all packages.
x List packages which are not installed but in package database.
i List all packages which are currently installed.
I List packages which are about to be installed during
synchronization.
u List packages which are about to be upgraded during
synchronization.
d List packages which are about to be downgraded during
synchronization.
r List packages which are about to be removed during synchronization.
m List all modifications which would apply during synchronization
(equal to Iudr)
n List packages which belong to the profile but are not modified
during synchronization.
The options can be combined. For example /query:du would print just
packages which are about to be upgraded or downgraded during next
synchronization.
The "m" option is a shortcut for /query:Iudr. So if you want to get a
full list of all changes which will happen during next synchronization
just use /query:m.
Another example:
If you want to see the list of packages as it will be after the next
synchronization just use /query:Iudn. This will list packages which are
new (I), upgraded (u), downgraded (d) and the ones which are already
applied and are not modified (n).
FIX: Fixed a couple of bugs in install function which only affected very rare
cases.
As usual version 1.2.1-RC18 can be found in SVN until released:
<http://wpkg.svn.sourceforge.net/viewvc/wpkg/wpkg/stable/1.2/>
I WOULD LIKE AS MANY PEOPLE AS POSSIBLE TO PERFORM TESTS WITH THIS VERSION. DUE
TO MANY INTERNAL RE-STRUCTURING ESPECIALLY IN CORE FUNCTIONALITY THE RISK OF
BREAKING SOMETHING IS HIGHER THAN USUAL.
I did many tests with special cases but I doubt I can perform tests for each
and every potential combination of parameters and package attributes.
It passes a full wpkg-test run without any errors but please report any issue
you might see.
Thanks for support!
Rainer
--
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the wpkg-users
mailing list