Files
opkg-utils/makePackage
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

15 lines
373 B
Python
Executable File

#!/usr/bin/python
# The general algorithm this program follows goes like this:
# Run tar to extract control from control.tar.gz from the package.
# Insert the filename, size, and md5 lines before the description.
# Call it like this:
# find . -name \*.ipk | xargs -n 1 makePackage > Packages
import sys
import opkg
fn = sys.argv[1]
pkg = opkg.Package(fn)
print pkg