Age | Commit message (Collapse) | Author |
|
General fixes
* Add __future__ imports
* Use print function instead of print statement
* Use new style classes
* Iterate over list, instead of over object.keys()
* Use six.iteritems instead of iteritems()
opkg.py:
* Add conditional to decode string if needed in Package:read_control
arfile.py
* Add seekable method to FileSection class (needed by tarfile)
Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
|
|
The new 'relpath' argument to the initialiser of a Package object is used so
that file paths will be given relative to the base packages directory.
Paths are given relative to pkg_dir as that seems to make the most sense. It
certainly works when the 'Packages' file is written to pkg_dir. If the
'Packages' file is written elsewhere it is assumed that the user will know what
the paths are relative to. This is similar to debian feeds where the paths in a
'Packages' file is not stored in the packages pool but is stored in a separate
directory, yet paths are given relative to the common base of these directories.
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
|
|
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
subprocess.check_output is not present in Python 2.6. Since the return value
is not being used anyway, replace it with subprocess.call(), which is.
Signed-off-by: Chris Diamand <chris@diamand.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
* user has to specify filename with -l to enable it
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
* when '-l Packages.filelist' option is used together with '-r Packages.old',
then only 'new' packages are processed to create Packages.filelist
packages found in Packages.old doesn't have fn set so get_file_list()
was returning empty
* now added get_file_list_dir() looks for filename in pkg_dir and if it
finds correct .ipk file it will use that to read its filelist, but it
also means that it will always unpack *all* Packages - very slow.
* it would be nice to add new param for Packages.filelist.old and then
filter filelist for packages used from Packages.old and merge it
together with new Packages.filelist, but that's more difficult because
of files structure.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
instead of __repr__
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
* The st_mtime attribute (which is a float) is compared against a value
from the timestamp database, which was stored as an integer there.
* When working on a filesystem with precise timestamps the comparision
will fail nearly everytime hence.
* Although it might be possible to enhance the database to store the
fractional part too, this will complicate things more than we would
gain by this change.
Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
* If we're building an image and some package rebuilds while this is
happening some package can be removed/added to the ipk deploy
directory. The image will not depend on this package so we can
safely ignore these cases rather than error out.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
"opkg-build -i ..." means creating .ipk file for backward support
|
|
o-hand.com
I've attached a first attempt at this, its basically a small set of
helper scripts which OE/Poky use when working with ipks. I've applied
the various OE improvements and tweaks and removed a ton of cruft we
don't need.
|