]> code.ossystems Code Review - openembedded-core.git/commit
package_manager.py: Add extract() method for opkg and dpkg
authorMariano Lopez <mariano.lopez@linux.intel.com>
Thu, 12 May 2016 11:28:13 +0000 (11:28 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 May 2016 06:26:40 +0000 (07:26 +0100)
commit7d214b34e11dc57316ed5c1c7747c4601286f6d2
treeca31f00ec365bbaa446f7752d7357f101b31696a
parent799bc1d1c747aad02b6d844bf55abfbd3ecc034c
package_manager.py: Add extract() method for opkg and dpkg

Sometimes it is needed to have the content of a package outside
the recipe context.  This new method extract the content of an
IPK/DEB file to a tmpdir, without actually installing the package.

A new OpkgDpkgPM class was added to share the code for opkg and dpkg.

There were need some changes to opkg_query() in order to use it
with apt-cache output. Also set default values to avoid UnboundLocalError

[YOCTO #9569]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager.py