From: Mariano Lopez <mariano.lopez@linux.intel.com>
To: Joshua G Lock <joshua.g.lock@linux.intel.com>,
openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 3/3] package_manager.py: Add extract() method for RPM package manager
Date: Thu, 12 May 2016 14:05:43 -0500 [thread overview]
Message-ID: <5734D407.1000005@linux.intel.com> (raw)
In-Reply-To: <1463045464.3794.6.camel@linux.intel.com>
On 05/12/2016 04:31 AM, Joshua G Lock wrote:
> On Wed, 2016-05-11 at 12:31 +0000, mariano.lopez@linux.intel.com wrote:
>> From: Mariano Lopez <mariano.lopez@linux.intel.com>
>>
>> + #Parse output
>> + for line in output.splitlines():
>> + line = line.rstrip()
>> + if line.startswith("Name:"):
>> + pkg = line.split(": ")[1]
>> + elif line.startswith("Version:"):
>> + tmp_str = line.split(": ")[1]
>> + ver, arch = tmp_str.split("@")
>> + break
> Could pkg, ver and arch be potentially undefined here?
>
>
I'll send a v2 with default values
Mariano Lopez
prev parent reply other threads:[~2016-05-12 19:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-11 12:31 [PATCH 0/3] Add extract() method to package manager mariano.lopez
2016-05-11 12:31 ` [PATCH 1/3] package_manager.py: Move opkg_query() outside of Indexer class mariano.lopez
2016-05-12 9:30 ` Joshua G Lock
2016-05-11 12:31 ` [PATCH 2/3] package_manager.py: Add extract() method for opkg and dpkg mariano.lopez
2016-05-12 9:30 ` Joshua G Lock
2016-05-11 12:31 ` [PATCH 3/3] package_manager.py: Add extract() method for RPM package manager mariano.lopez
2016-05-12 9:31 ` Joshua G Lock
2016-05-12 19:05 ` Mariano Lopez [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5734D407.1000005@linux.intel.com \
--to=mariano.lopez@linux.intel.com \
--cc=joshua.g.lock@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.