summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2012-06-19Option "C" ist shown in usage() and implemented, but was missing in getopts. ↵Ondics Githubler
Added "C". Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> 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.py: get_file_list_dir: fix empty output from find if package disappersMartin Jansa
* if .ipk disappers before parsing Packages.old then it's fine and it's not used at all * but if it disappers between parsing Packages.old and generating Packages.filelist then it would fail to split() empty output 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.py: improve test so it prints temporary control file with long ↵Martin Jansa
description and then reads it back Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-26opkg.py: use textwrap for description writingMartin Jansa
* description field in oe-core sometimes has extra line-feeds and is long * extra line-feeds breaks read_control, because empty line means next Package * long descriptions should be wrapped and properly indented, so they are parsed back properly Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-26opkg.py: fix write_package when called from main testMartin Jansa
* there is no self.meta_dir before self._setup_scratch_area * control file needs to be closed before packing it with tar, otherwise it could be empty Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-26opkg.py: computeFileMD5 only when we have fn, otherwise fails to read None fileMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-26opkg.py: cast lines from controlfile as stringMartin Jansa
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-26arfile: fix testMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-26opkg.py: catch TypeError when reading control file, to show which one is failingMartin Jansa
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-26arfile: decode read lines as ascii string before getting fields from itMartin Jansa
* python3 returns them as byte sequence Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-26opkg.py, arfile.py: report which file has wrong format and use the same testMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-26opkg.py: use hashlib instead of old md5 moduleMartin 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-26arfile.py: handle six digit UIDsScott Anderson
* Essentially, the problem is that arfile.py is splitting the ar header with white-space instead of fixed-width fields, so two fields would get treated as a single field. This makes things better than before as it now honors the fixed field widths. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-26opkg.py: Add knowledge about License field in ipk headersKhem Raj
Signed-off-by: Khem Raj <raj.khem@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>
2012-04-13opkg-compare-versions: Adapted to the latest opkg upstream.Lianhao Lu
Adapted to the latest opkg upstream implemenation for comparing versions. This is part of the bug fixing [YOCTO #2233]. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2008-11-03[opkg-utils] fix install fail problem Tick Chen
Thanks for khorben's patch :-) https://docs.openmoko.org/trac/attachment/ticket/2072/patch-opkg-utils_Makefile_install_path.diff
2008-08-12[opkg-util] adding Size support when creating PackagesTick Chen
2008-08-07[opkg-utils] Print the "Tags" field. Patch from OE and authored by John LeeHolger 'Zecke' Freyther
2008-08-07ipkg-utils: fix ipk (ar) file processing to handle odd-length data blocks.Holger 'Zecke' Freyther
Closes bug #4350. This was authored by mwester and comes from OE.
2008-08-02[opkg-build] Add -O to the getopt list to make it a valid optionHolger 'Zecke' Freyther
- -O is now a honored option.
2008-07-28make ipk as default opk as an optionTick Chen
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.
2008-07-17opkg-utils: add the directory of opkg-utilsTick Chen