Thanks, 
But still the same error :

cvc cook gnome-keyring.recipe 
error: /var/tmp/temp-gnome-keyring-bmqBl6.recipe:11:
 AttributeError: 'GnomeKeyring' object has no attribute 'AddRedirect'

Here is the recipe :

# Copyright (c) 2004-2008 rPath, Inc.
# This file is distributed under the terms of the MIT License.
# A copy is available at http://www.rpath.com/permanent/mit-license.html
#

class GnomeKeyring(RedirectRecipe):
    name = 'gnome-keyring'
    version = '0'

    def setup(r):
        r.AddRedirect('grc','foresighters.rpath.org@fl:2-devel')


Roelof



> From: [email protected]
> Date: Mon, 29 Apr 2013 09:26:34 +0100
> To: [email protected]
> Subject: [Foresight-devel] Re: redirect recipe for gnome-keyring
> 
> it's close.
> 
> a) you don't need the loadSuperClass at all line as you are not going to
> use it in any way.
> b) for redirects the class type is expected to be of RedirectRecipe
> 
> so the right invocation would be ...
> 
> class GnomeKeyring(RedirectRecipe):
>     name = 'gnome-keyring'
>     version = '0'
> 
>     def setup(r):
>         r.AddRedirect('grc','foresighters.rpath.org@fl:2-devel')
> 
> 
> All the best,
> 
> António
> 
> 
> 
> António Meireles
> --
> Lead Developer, The Foresight Linux Project
> http://www.foresightlinux.org
> 
> 
> On Mon, Apr 29, 2013 at 8:54 AM, Roelof Wobben <[email protected]> wrote:
> 
> > Hello,
> >
> > I made this recipe :
> >
> > #
> > # Copyright (c) 2004-2008 rPath, Inc.
> > # This file is distributed under the terms of the MIT License.
> > # A copy is available at http://www.rpath.com/permanent/mit-license.html
> > #
> >
> > loadSuperClass('gnomepackage')
> >
> > class GnomeKeyring(GnomePackageRecipe):
> >     name = 'gnome-keyring'
> >     version = '0'
> >
> >
> >     def setup(r):
> >         r.AddRedirect('grc','foresighters.rpath.org@fl:2-devel')
> >
> >
> > According to the manual this should work but I do not work.
> > I see this message : AttributeError: 'GnomeKeyring' object has no
> > attribute 'AddRedirect'
> >
> > How to solve this one ?
> >
> > Roelof
> >
> >
> > _______________________________________________
> > Foresight-devel mailing list
> > [email protected]
> > https://lists.foresightlinux.org/mailman/listinfo/foresight-devel
> >
> >
> _______________________________________________
> Foresight-devel mailing list
> [email protected]
> https://lists.foresightlinux.org/mailman/listinfo/foresight-devel
                                          
_______________________________________________
Foresight-devel mailing list
[email protected]
https://lists.foresightlinux.org/mailman/listinfo/foresight-devel

Reply via email to