[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: help with KProcess (passing arguments)
From:       "Christopher J. Bottaro" <cjbottaro () alumni ! cs ! utexas ! edu>
Date:       2005-02-26 3:19:36
Message-ID: cvop7c$8s4$2 () sea ! gmane ! org
[Download RAW message or body]

Christopher J. Bottaro wrote:

> Aaron J. Seigo wrote:
> 
>> On Friday 25 February 2005 11:36, Christopher J. Bottaro wrote:
>>> kproc << "--enablerepo=base,updates-released"
>> 
>> does:
>> 
>> kproc << "--enablerepo" << "base,updates-released";
>> 
>> work better?
>> 
> 
> No:
> 
> slotReceiveStderr(): No Match for argument --enablerepo
> 
> slotReceiveStderr(): No Match for argument base,updates-released
> 
> Thanks for the suggestion though.
> 
> P.S.  I'm using PyKDE if it makes any difference.
> 
> self.process << "yum"
> self.process << command
> self.process << "--disablerepo" << ','.join(drepos)
> self.process << "--enablerepo" << ','.join(erepos)
> #self.process << "--disablerepo=%s" % ','.join(drepos)
> #self.process << "--enablerepo=%s" % ','.join(erepos)
> for p in packages:
>    self.process << p
> self.process.start(KProcess.NotifyOnExit, KProcess.All)
> 
> Funny thing is that the rest works.  Its just the --disablerepo and
> --enablerepo options that yum complains about.

Ugh, dumb mistake.  The arguments need to come before the yum command. 
Sometimes I lose my head...sorry for the noise.

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic