[Yum-devel] [PATCH] Add nocollections tsflags option

Panu Matilainen pmatilai at laiskiainen.org
Tue Jun 22 12:48:45 UTC 2010


On Thu, 17 Jun 2010, seth vidal wrote:

> On Thu, 2010-06-17 at 16:38 -0400, James Antill wrote:
>> ---
>>  yum/depsolve.py |    5 ++++-
>>  1 files changed, 4 insertions(+), 1 deletions(-)
>>
>> diff --git a/yum/depsolve.py b/yum/depsolve.py
>> index 3e95626..997d0ed 100644
>> --- a/yum/depsolve.py
>> +++ b/yum/depsolve.py
>> @@ -138,9 +138,12 @@ class Depsolve(object):
>>                              'test': rpm.RPMTRANS_FLAG_TEST,
>>                              'justdb': rpm.RPMTRANS_FLAG_JUSTDB,
>>                              'repackage': rpm.RPMTRANS_FLAG_REPACKAGE}
>> -        # This is only in newer rpm.org releases
>> +        # This is only in newer rpm.org releases (4.8.x ish)
>>          if hasattr(rpm, 'RPMTRANS_FLAG_NOCONTEXTS'):
>>              ts_flags_to_rpm['nocontexts'] = rpm.RPMTRANS_FLAG_NOCONTEXTS
>> +        # Super new rpm releases ... 4.9.x?
>> +        if hasattr(rpm, 'RPMTRANS_FLAG_NOCOLLECTIONS'):
>> +            ts_flags_to_rpm['nocollections'] = rpm.RPMTRANS_FLAG_NOCOLLECTIONS
>>
>>          self._ts.setFlags(0) # reset everything.
>>
>
> NACK - not until it gets accepted into rpm.

FWIW, the collections patch-set landed in rpm today, but I'd suggest 
holding off for a bit until the dust around collections settles. Not that 
I particularly expect the flag to change but .. still.

 	- Panu -


More information about the Yum-devel mailing list