[Spacewalk-list] Bugs in Spacewalk/PostgreSQL

Wojtak, Greg GregWojtak at quickenloans.com
Fri Dec 2 20:00:40 UTC 2011


Thanks Jan, sorry for the mistakes.

Honestly, it was the first time I've ever created a diff for the use of a
patch. :/

- Greg

On 2011-11-23 9:28 AM, "Jan Pazdziora" <jpazdziora at redhat.com> wrote:

>On Mon, Nov 21, 2011 at 11:09:41AM +0100, Jan Pazdziora wrote:
>> On Fri, Nov 04, 2011 at 04:41:02PM +0000, Wojtak, Greg wrote:
>> > I've attached a patch for /usr/share/perl5/RHN/DB/Action.pm.
>> 
>> Thank you.
>> 
>> A few comments:
>> 
>> The patch seems to use just CR (no LF) as line ends which prevents it
>> to be applied. You might want to preserve the newline characters.
>> 
>> The patch was a reverse patch.
>> 
>> In general, you might want to use git format-patch to get it created
>> for you.
>> 
>> You seem to have introduced quite a lot of whitespace changes which
>> add unnecessary noise and can hide actual issues with the patch. For
>> example, the first chunk does
>> 
>>  SELECT A.id
>> -  FROM rhnAction A,
>> -       rhnServerAction SA
>> - WHERE SA.server_id = :server_id
>> + FROM rhnAction A,
>> +      rhnServerAction SA
>> +  WHERE SA.server_id = :server_id
>>     AND SA.status = 0
>> -   AND SA.action_id = A.id
>>     AND A.prerequisite IS NULL
>>  ORDER BY A.id;
>> 
>> which removes the
>> 
>> 	AND SA.action_id = A.id
>> 
>> join -- that does not sound correct.
>> 
>> Would you like to give the patch another try to fix these issues?
>
>Anyway, I've polished the patch and pushed the change to Spacewalk
>master as 91b2ab3bcb08aa0d051f04b72d43f81f29009c71 now.
>
>Thanks!
>
>-- 
>Jan Pazdziora
>Principal Software Engineer, Satellite Engineering, Red Hat
>
>_______________________________________________
>Spacewalk-list mailing list
>Spacewalk-list at redhat.com
>https://www.redhat.com/mailman/listinfo/spacewalk-list





More information about the Spacewalk-list mailing list