diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2008-07-31 12:20:11 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2008-07-31 12:20:11 +0200 |
| commit | 1d96f36591c56798021c4e33d01a781507592add (patch) | |
| tree | 70c6174fbfbdb2328a0d414c8382cd0e989f91dd | |
| parent | bb53ee921fc357decaa6b1f8660f9d6ce621eafb (diff) | |
| download | python-apt-1d96f36591c56798021c4e33d01a781507592add.tar.gz | |
add test_debextract.py
| -rwxr-xr-x | tests/test_debextract.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_debextract.py b/tests/test_debextract.py new file mode 100755 index 00000000..53241e92 --- /dev/null +++ b/tests/test_debextract.py @@ -0,0 +1,13 @@ +#!/usr/bin/python + +import apt_inst +import sys + +def Callback(What,Name,Link,Mode,UID,GID,Size,MTime,Major,Minor): + print "%s '%s','%s',%u,%u,%u,%u,%u,%u,%u" % ( + What,Name,Link,Mode,UID,GID,Size, MTime, Major, Minor) + +member = "data.tar.lzma" +if len(sys.argv) > 2: + member = sys.argv[2] +apt_inst.debExtract(open(sys.argv[1]), Callback, member) |
