summaryrefslogtreecommitdiffstats
path: root/opkg-compare-indexes
AgeCommit message (Collapse)Author
2019-12-02opkg-utils: Switch to python3Haris Okanovic
Switch all py script shebangs to `#!/usr/bin/env python3`. Testing: Successfully ran the following on an IPK feed in $PWD: * opkg-make-index --checksum md5 --checksum sha256 -p Packages -m -l Packages.filelist . * opkg-graph-deps ./Packages * opkg-compare-indexes ./ ./ * opkg-list-fields font-alias_1.0.3-r2.3.204_all.ipk * opkg-show-deps -p Packages font-alias I'm not sure how to correctly run opkg-update-index and opkg-unbuild. I attempted to run both with `-h`, no parse errors. My motivation for this change is to add xz support to opkg filelists, which requires python3's version of tarfile. See previous commits in this series for details. However, this is probably a good change in general since python2 support is starting to dwindle. Signed-off-by: Haris Okanovic <haris.okanovic@ni.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2019-10-18add SPDX license identifiersYann CARDAILLAC
Signed-off-by: Yann CARDAILLAC <ycnakajsph@gmail.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
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-05opkg-compare-indexes: Fix usage messagePaul Barker
The usage message had the name of the program wrong. If the number of arguments is not correct then the current code does not show the usage message as indended. Instead it gives an index out of range error if too few arguments are provided or silently ignores extra arguments. This code is fixed so that the length of the arguments list is checked before arguments are accessed, preventing errors and allowing the usage message to be shown correctly. Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
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>
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.