On Mon, Jan 16, 2012 at 12:15:26PM +0100, Michael Calmer wrote:
> > easier fix.
> > But I would most rather see there
> >    if getPlatform() == 'deb' or isThisSuse():
> 
> Ok, but looking into it more deeply I wonder how this can work. I cannot find 
> a function called "getPlatform()" in the module "platform" (python 2.6/2.7) 
> 
> # python -c "from platform import getPlatform"
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> ImportError: cannot import name getPlatform
> 
> There is a function "platform()" but this returns something like this:
> 
>  Linux-2.6.32.49-0.3-default-x86_64-with-SuSE-11-x86_64
> 
> I think it does not return only "deb" on debian.
>  
> Do you know where this getPlatform come from?

It's in

        client/rhel/rhn-client-tools/src/up2date_client/platform.py

-- 
Jan Pazdziora
Principal Software Engineer, Satellite Engineering, Red Hat

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to