source: ipk/ipkg-utils-050831/makePackage@ 12663

Last change on this file since 12663 was 4860, checked in by obi, 15 years ago

[ipkg] fix

File size: 373 bytes
Line 
1#!/usr/bin/python
2
3# The general algorithm this program follows goes like this:
4# Run tar to extract control from control.tar.gz from the package.
5# Insert the filename, size, and md5 lines before the description.
6# Call it like this:
7# find . -name \*.ipk | xargs -n 1 makePackage > Packages
8
9import sys
10import ipkg
11
12fn = sys.argv[1]
13pkg = ipkg.Package(fn)
14print pkg
Note: See TracBrowser for help on using the repository browser.