[sbopkg-users] a very tiny patch to speed up in a rare case

Willy Sudiarto Raharjo willysr at sbopkg.org
Sun Jul 23 15:22:58 UTC 2017


>> I send you this tiny patch, it's to speed up a bit in the rare case the
>>
>> user has an empty source cache and still wants to check the obsolete
>> packages,
>>
>> in this case I added a quick flag to exit before starting the loop from
>> the actual sources list.
>>
>>
>> I know it is rare and almost cosmetic but it bit me two time this year :D)
>>
>>
>> Feel free to use it or not, improve it or modify it as you like
>>
>> (for instance having a different message as "cache empty" instead of "no
>> obsolete sources")
>>
>>
>> Cheers
>>
>> PS: I attached two versions of the patch, one against version 0.38.1 and
>> the other against the git as of today
> 
> Thanks Loki
> 
> i will review this patch as soon as possible

Hi Loki

i have merged this patch with some minor modifications just for readibility.

Thanks for the patch


-- 
Willy Sudiarto Raharjo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <https://sbopkg.org/pipermail/sbopkg-users/attachments/20170723/eca3c353/attachment.asc>


More information about the sbopkg-users mailing list