Re: [Yum-devel] [PATCH] Fix blank line at end of all scriptlet output

2010-05-21 Thread Jeroen van Meeuwen
James Antill wrote: > 'abcd '.rstrip() == 'abcd' > > ...I guess we could do: > > msg.rstrip('\n').split('\n') > > ...everyone prefer that? > I'm thinking just rstrip() without the '\n' would suffice, no? ;-) -- Jeroen ___ Yum-devel mailing list Y

Re: [Yum-devel] [PATCH] Fix blank line at end of all scriptlet output

2010-05-21 Thread Jeroen van Meeuwen
Seth Vidal wrote: > I like splitlines() and then checking if the last line is empty - but > > > we're bikeshedding the hell out of this. :) > No we're not! ;-) -- Jeroen ___ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org

Re: [Yum-devel] [PATCH] Fix blank line at end of all scriptlet output

2010-05-21 Thread Jeroen van Meeuwen
James Antill wrote: > IIRC because stdout is not a terminal then stdio/etc. will turn it into > "block buffered" mode. So we tend to get output like: > > "warning: blah\nwarning: foo\nsomethingelse\n" > > ...and we want those as 3 lines, in the DB. So I just did a split(), but > that gives 4 lin

[Yum-devel] Depsolving I don't understand

2009-04-05 Thread Jeroen van Meeuwen
e is, shouldn't _compare_providers() take into account version numbers as well? I realize though my ayum.tsInfo.addInstall() of a po isn't supposed to happen (should have used ayum.install()), but I wanted to put this in front of you anyway. Kind regards, Jeroen van Meeuwen -kanarip == Snippet:

[Yum-devel] Basearch on ppc64

2009-03-22 Thread Jeroen van Meeuwen
earch, though there is a ppc64/ repository for Everything and updates. Am I right or wrong to conclude something is wrong here? Kind regards, Jeroen van Meeuwen -kanarip ___ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel

Re: [Yum-devel] [PATCH] yum-utils: repoclosure for single package

2008-12-25 Thread Jeroen van Meeuwen
seth vidal wrote: > On Thu, 2008-12-25 at 16:44 +0100, Tim Lauridsen wrote: >> Kedar Sovani wrote: >>> Check for the repoclosure of a single package. >>> >>> Usecase: My automation scripts wanted to query the yum repositories for >>> closure of a single package, instead of spending time on checking