negative priorities can't be set from command line
Bug #244603 reported by
Edward Rudd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Smart Package Manager |
New
|
Undecided
|
Unassigned |
Bug Description
Exported from http://
This issue still affects Smart 0.52 (Fedora 8 w/ pythin 2.5.1)
-- from 2007-10-02 @ 08:42 by thm
A workaround is to use the config subcommand like this:
smart config --set package-
-- from 2006-07-20 @ 17:35 by urkle
according to "smart priority --help" I can do this
smart priority --set pkgname channel -- -10
However I receive an error of "error: no such option: -1"
This occurs with both 0.41 (CentOS 4 w/ pytyhon 2.3.4) and 0.42 (FC5 with python
2.4.3)
To post a comment you must log in.
It it an option to use a later version of smart .
Something greater than Smart 0.52
e.g:
# rpm -qa | grep -i smart- y-1.1-2. 3 python2. 6/site- packages/ smart/const. py:39: DeprecationWarning: object.__new__() takes no parameters registry[ name] = object. __new__ (klass, name) python2. 6/site- packages/ smart/util/ strtools. py:28: DeprecationWarning: the md5 module is deprecated; use hashlib instead
smart-ksmarttra
smart-1.1-2.3
smart-gui-1.1-2.3
linux:/ # smart priority --help
/usr/lib64/
instance = klass._
/usr/lib64/
import md5
Usage: smart priority [options]
This command allows changing the priority of given packages.
Packages with higher priorities are considered a better option
even when package versions state otherwise. Using priorities
one may avoid unwanted upgrades, force downgrades, select
packages in given channels as preferential, and other kinds
of interesting setups. When a package has no explicit priority,
the channel priority is used. The channel priority may be
changed using the 'channel' command, and defaults to 0 when
not set.
Notice that negatives priorities must be preceded by '--' in
the command line, otherwise they'll be interpreted as command
line options.
Options:
-h, --help Show this help message and exit
--set Set priority
--remove Unset priority
--show Show priorities
--force Ignore problems
Examples:
smart priority --set pkgname 100
smart priority --set pkgname mychannel -- -200
smart priority --remove pkgname
smart priority --remove pkgname mychannel
smart priority --show
smart priority --show pkgname