mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-16 14:25:21 -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
222 B
Python
12 lines
222 B
Python
self.description = "-D --asdeps"
|
|
|
|
lp = pmpkg("pkg")
|
|
lp.reason = 0
|
|
self.addpkg2db("local", lp)
|
|
|
|
self.args = "-D pkg --asdeps"
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
self.addrule("PKG_EXIST=pkg")
|
|
self.addrule("PKG_REASON=pkg|1")
|