mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-24 00:38:51 -05:00
ac9dde072c
The request of FS#12950 is implemented. On the backend side, I introduced a new function, alpm_db_set_pkgreason(), to modify the install reason of a package in the local database. On the front-end side, I introduced a new main operation, -D/--database, which has two options, --asdeps and --asexplicit. I documented this in pacman manual. I've created two pactests to test -D: database001.py and database002.py. Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu> Signed-off-by: Dan McGee <dan@archlinux.org>
12 lines
230 B
Python
12 lines
230 B
Python
self.description = "-D --asexplicit"
|
|
|
|
lp = pmpkg("pkg")
|
|
lp.reason = 1
|
|
self.addpkg2db("local", lp)
|
|
|
|
self.args = "-D pkg --asexplicit"
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
self.addrule("PKG_EXIST=pkg")
|
|
self.addrule("PKG_REASON=pkg|0")
|