Bug#945131: dpkg: implement a way to wait to detect whether dpkg is running

2019-12-18 Thread Raphael Hertzog
On Wed, 18 Dec 2019, Guillem Jover wrote: > > We could add hundreds of path-based triggers, one for each binary that we > > reference in our desktop files but we would likely miss any path > > change... and it would be a bit tedious to maintain. > > I checked the kali package, and the solutions

Bug#945131: dpkg: implement a way to wait to detect whether dpkg is running

2019-12-17 Thread Guillem Jover
On Sat, 2019-11-23 at 16:04:33 +0100, Raphael Hertzog wrote: > On Fri, 22 Nov 2019, Guillem Jover wrote: > > That still does not explain why this needs to be done outside the dpkg's > > execution context, though? > > I don't know any point in dpkg's execution context where we are sure that > we

Bug#945131: dpkg: implement a way to wait to detect whether dpkg is running

2019-11-23 Thread Raphael Hertzog
On Fri, 22 Nov 2019, Guillem Jover wrote: > That still does not explain why this needs to be done outside the dpkg's > execution context, though? I don't know any point in dpkg's execution context where we are sure that we will not install/remove other packages later on. > Triggers right now

Bug#945131: dpkg: implement a way to wait to detect whether dpkg is running

2019-11-22 Thread Guillem Jover
On Wed, 2019-11-20 at 12:14:44 +0100, Raphael Hertzog wrote: > On Wed, 20 Nov 2019, Guillem Jover wrote: > > > To achieve this in a more elegant way, could you possibly implement some > > > "dpkg --is-running" test ? And/or maybe "dpkg --wait-lock-release" or > > > something similar ? > > > > I'm

Bug#945131: dpkg: implement a way to wait to detect whether dpkg is running

2019-11-20 Thread Raphael Hertzog
Hi, On Wed, 20 Nov 2019, Guillem Jover wrote: > > To achieve this in a more elegant way, could you possibly implement some > > "dpkg --is-running" test ? And/or maybe "dpkg --wait-lock-release" or > > something similar ? > > I'm not sure I understand why this is not done say via a trigger >

Bug#945131: dpkg: implement a way to wait to detect whether dpkg is running

2019-11-20 Thread Guillem Jover
Hi! On Wed, 2019-11-20 at 11:28:09 +0100, Raphaël Hertzog wrote: > Package: dpkg > Version: 1.19.7 > Severity: wishlist > User: de...@kali.org > Usertags: origin-kali > I just got a lintian warning "uses-dpkg-database-directly" on a script I > wrote a long time ago: >

Bug#945131: dpkg: implement a way to wait to detect whether dpkg is running

2019-11-20 Thread Raphaël Hertzog
Package: dpkg Version: 1.19.7 Severity: wishlist User: de...@kali.org Usertags: origin-kali I just got a lintian warning "uses-dpkg-database-directly" on a script I wrote a long time ago: https://gitlab.com/kalilinux/packages/kali-menu/blob/kali/master/update-kali-menu It's a script started in a