Martin Jansa
c30dcd27d4
opkg.py: fix write_package when called from main test
...
* 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-26 11:39:42 +01:00
Martin Jansa
2bb6037ead
opkg.py: computeFileMD5 only when we have fn, otherwise fails to read None file
...
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2012-04-26 11:39:42 +01:00
Martin Jansa
28c706b41e
opkg.py: cast lines from controlfile as string
...
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2012-04-26 11:39:42 +01:00
Martin Jansa
b9eec00a67
opkg-make-index: don't use stdout for Packages output and use __str__ instead of __repr__
...
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2012-04-26 11:39:42 +01:00
Martin Jansa
554da94178
arfile: fix test
...
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2012-04-26 11:39:42 +01:00
Martin Jansa
e2de780ae5
opkg.py: catch TypeError when reading control file, to show which one is failing
...
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2012-04-26 11:39:42 +01:00
Martin Jansa
5742435b33
opkg.py: use string funtcions directly on string variable
...
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2012-04-26 11:39:41 +01:00
Martin Jansa
deabe73a40
opkg-make-index: show OSError/IOError
...
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2012-04-26 11:39:41 +01:00
Martin Jansa
9a4f0a0eb8
2to3: exception handling fixes
...
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2012-04-26 11:39:41 +01:00
Martin Jansa
a9e112ae51
2to3: dictionary fixes
...
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2012-04-26 11:39:41 +01:00
Martin Jansa
76ed799fa0
2to3: print fixes
...
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2012-04-26 11:39:41 +01:00
Martin Jansa
83d2c065da
2to3: use subprocess instead of commands
...
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2012-04-26 11:39:41 +01:00
Martin Jansa
cc08d0e3ae
arfile: decode read lines as ascii string before getting fields from it
...
* python3 returns them as byte sequence
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2012-04-26 11:39:41 +01:00
Martin Jansa
0e5f4c9277
opkg.py, arfile.py: report which file has wrong format and use the same test
...
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2012-04-26 11:39:41 +01:00
Martin Jansa
97bfc2dc14
opkg.py: use hashlib instead of old md5 module
...
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2012-04-26 11:39:41 +01:00
Christopher Larson
efe66d374d
Use python via the PATH, rather than hardcoding /usr/bin/python
...
Signed-off-by: Christopher Larson <kergoth@gmail.com >
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2012-04-26 11:39:41 +01:00
Scott Anderson
4b04e41eb6
arfile.py: handle six digit UIDs
...
* 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-26 11:39:41 +01:00
Khem Raj
74fc0c6a7c
opkg.py: Add knowledge about License field in ipk headers
...
Signed-off-by: Khem Raj <raj.khem@gmail.com >
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com >
2012-04-26 11:39:41 +01:00
Enrico Scholz
a917774fb1
opkg-make-index: convert mtime to int before comparing it
...
* 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-26 11:39:40 +01:00
Richard Purdie
c1033c9d5c
opkg-make-index: don't error out when some package disappears
...
* 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-26 11:39:40 +01:00
Lianhao Lu
16665959c3
opkg-compare-versions: Adapted to the latest opkg upstream.
...
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 >
2012-04-13 14:54:37 +01:00
Tick Chen
002d29bc60
[opkg-utils] fix install fail problem
...
Thanks for khorben's patch :-)
https://docs.openmoko.org/trac/attachment/ticket/2072/patch-opkg-utils_Makefile_install_path.diff
2008-11-03 03:59:59 +00:00
Tick Chen
85409083af
[opkg-util] adding Size support when creating Packages
2008-08-12 04:11:25 +00:00
Holger 'Zecke' Freyther
27eb95490d
[opkg-utils] Print the "Tags" field. Patch from OE and authored by John Lee
2008-08-07 10:11:38 +00:00
Holger 'Zecke' Freyther
92a2dad4aa
ipkg-utils: fix ipk (ar) file processing to handle odd-length data blocks.
...
Closes bug #4350 .
This was authored by mwester and comes from OE.
2008-08-07 10:07:28 +00:00
Holger 'Zecke' Freyther
8b83ffaf7d
[opkg-build] Add -O to the getopt list to make it a valid option
...
- -O is now a honored option.
2008-08-02 20:25:10 +00:00
Tick Chen
d08232eb0d
make ipk as default opk as an option
2008-07-28 11:58:02 +00:00
Tick Chen
04e92b11ff
opkg-util make .opk as the default file extension
...
"opkg-build -i ..." means creating .ipk file for backward support
2008-07-28 10:29:45 +00:00
Holger 'Zecke' Freyther
234524f33d
[opkg-utils] Add opkg-utils to the repository courtsey Richard Purdie of 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-18 11:29:53 +00:00
Tick Chen
ff85f089b5
opkg-utils: add the directory of opkg-utils
2008-07-17 01:35:37 +00:00