pacman/test/pacman/tests/usernote-02-set-localdb.py
vixfwis 5705b600ca user notes via xdata field
this patch adds user/libalpm interfaces to be able to add custom
user notes into local database
2024-09-17 12:43:27 +05:00

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")