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

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 \*.opk | xargs -n 1 makePackage > Packages
import sys
import opkg
fn = sys.argv[1]
pkg = opkg.Package(fn)
print pkg