[Yum-devel] [PATCH] make sure we write out the sourcerpm tag even if it is empty b/c yum 2.4.X and OLD y-m-p freak out otherwise createrepo ticket # 12

tim.lauridsen at gmail.com tim.lauridsen at gmail.com
Thu Feb 3 10:29:34 UTC 2011


On Thu, Feb 3, 2011 at 6:55 AM, Seth Vidal <skvidal at fedoraproject.org>wrote:

> ---
>  yum/packages.py |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/yum/packages.py b/yum/packages.py
> index 6f61fea..15eeeaa 100644
> --- a/yum/packages.py
> +++ b/yum/packages.py
> @@ -1069,6 +1069,9 @@ class YumAvailablePackage(PackageObject, RpmBase):
>
>         if self.sourcerpm:
>             msg += """    <rpm:sourcerpm>%s</rpm:sourcerpm>\n""" %
> misc.to_xml(self.sourcerpm)
> +        else: # b/c yum 2.4.3 and OLD y-m-p willgfreak out if it is not
> there.
> +            msg += """    <rpm:sourcerpm/>\n"""
> +
>         msg +="""    <rpm:header-range start="%s" end="%s"/>""" %
> (self.hdrstart,
>                                                                self.hdrend)
>         msg += self._dump_pco('provides')
> --
> 1.7.3.4
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel
>

ACK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20110203/b6d5b78d/attachment.html>


More information about the Yum-devel mailing list