summaryrefslogtreecommitdiffstats
path: root/opkg-make-index
AgeCommit message (Collapse)Author
2016-06-01migrate to python 3Alejandro del Castillo
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>
2014-05-06opkg-make-index: Recursively scan for packagesPaul Barker
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>
2012-10-24opkg-make-index: fix mis-indented else:Marc Olzheim
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-06-19Changed call to subprocess.check_output which isn't compatible with Python 2.6Chris Diamand
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>
2012-04-26opkg-make-index: disable filelist by defaultMartin Jansa
* user has to specify filename with -l to enable it Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-26opkg-make-index: generate complete filelistMartin Jansa
* 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>
2012-04-26opkg-make-index: don't use stdout for Packages output and use __str__ ↵Martin Jansa
instead of __repr__ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-26opkg.py: use string funtcions directly on string variableMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-26opkg-make-index: show OSError/IOErrorMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-262to3: exception handling fixesMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-262to3: dictionary fixesMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-262to3: print fixesMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-262to3: use subprocess instead of commandsMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-26Use python via the PATH, rather than hardcoding /usr/bin/pythonChristopher Larson
Signed-off-by: Christopher Larson <kergoth@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-26opkg-make-index: convert mtime to int before comparing itEnrico Scholz
* 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>
2012-04-26opkg-make-index: don't error out when some package disappearsRichard Purdie
* 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>
2008-07-28opkg-util make .opk as the default file extension Tick Chen
"opkg-build -i ..." means creating .ipk file for backward support
2008-07-18[opkg-utils] Add opkg-utils to the repository courtsey Richard Purdie of ↵Holger 'Zecke' Freyther
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.