
this patch adds user/libalpm interfaces to be able to add custom user notes into local database
11 lines
308 B
Python
11 lines
308 B
Python
self.description = "Set note in localdb"
|
|
|
|
sp = pmpkg("pkg")
|
|
self.addpkg2db("local", sp);
|
|
|
|
self.args = "-D --note 'user note' --note-extra foo=bar pkg"
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
self.addrule("PKG_EXIST=pkg")
|
|
self.addrule("PKG_XDATA=pkg|user:note=user note")
|
|
self.addrule("PKG_XDATA=pkg|user:foo=bar")
|