From 4dd622d7bb1b8822b1f98cce313a17d6246b86a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Mon, 13 Jun 2005 13:50:07 +0000 Subject: [PATCH] =?UTF-8?q?Archive=20i=C3=A7in=20bir=20deneme...=20tests?= =?UTF-8?q?=20i=C3=A7erisindekileri=20unittest'e=20ta=C5=9F=C4=B1may=C4=B1?= =?UTF-8?q?=20ciddi=20ciddi=20d=C3=BC=C5=9F=C3=BCn=C3=BCyoruz=20(=C5=9Fimd?= =?UTF-8?q?ilik=20sadece=20d=C3=BC=C5=9F=C3=BCn=C3=BCyoruz...)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tests/archive_file | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/tests/archive_file diff --git a/src/tests/archive_file b/src/tests/archive_file new file mode 100644 index 00000000..2a4a061c --- /dev/null +++ b/src/tests/archive_file @@ -0,0 +1,16 @@ +#!/usr/bin/python + +import sys +sys.path.append("..") +sys.path.append(".") + +from pisi import archive +from pisi import specfile + +spec = specfile.SpecFile() +spec.read(sys.argv[1]) + +print "unpacking file: %s" % spec.archiveName + +a = archive.Archive(spec.archiveType, spec.archiveName) +a.unpack()