Re: [Rpm-maint] [PATCH 1/2] Add RPMTAG_AUTOINSTALLED

2018-03-21 Thread Vladimir D. Seleznev
On Wed, Mar 14, 2018 at 10:54:36AM -0400, Jeff Johnson wrote: > > Two other comments on AUTOINSTALLED: > > 1) Use a string (or string array) with values like "manual" and "auto" > rather than bits. The meaning is more intuitive, and avoids lots of > fluff everywhere to Name Those Bits! with

Re: [Rpm-maint] [PATCH 1/2] Add RPMTAG_AUTOINSTALLED

2018-03-14 Thread Jeff Johnson
Two other comments on AUTOINSTALLED: 1) Use a string (or string array) with values like "manual" and "auto" rather than bits. The meaning is more intuitive, and avoids lots of fluff everywhere to Name Those Bits! with --query and in bindings. 2) Use a header extension outside of rpm to permit

Re: [Rpm-maint] [PATCH 1/2] Add RPMTAG_AUTOINSTALLED

2018-03-14 Thread Jeff Johnson
RPM itself does not have any need, use, or ability to compute the bits in AUTOINSTALLED because rpm provides only a mechanism. There are already API's to add tags to headers, and depsolvers can certainly add tags to headers as needed. AUTOINSTALLED perhaps should be named differently, as

Re: [Rpm-maint] [PATCH 1/2] Add RPMTAG_AUTOINSTALLED

2018-03-14 Thread Panu Matilainen
On 03/12/2018 11:04 PM, vsele...@altlinux.org wrote: From: "Vladimir D. Seleznev" This tag is needed to track automatically installed packages with rpmdb. Zero value means that a package was installed manually, other values mean that the package was installed

[Rpm-maint] [PATCH 1/2] Add RPMTAG_AUTOINSTALLED

2018-03-12 Thread vseleznv
From: "Vladimir D. Seleznev" This tag is needed to track automatically installed packages with rpmdb. Zero value means that a package was installed manually, other values mean that the package was installed automatically as some else package dependency. This tag is