diff options
author | Ishan Jayawardena <udeshike@gmail.com> | 2011-06-15 14:19:00 +0530 |
---|---|---|
committer | Ishan Jayawardena <udeshike@gmail.com> | 2011-06-15 14:19:00 +0530 |
commit | 5da0f9fd194b76fd82482fbe533d963fc87f315d (patch) | |
tree | caa9413d7abf5d1557b123589e0cb1452acce20a /test | |
parent | 9995c4a0bc2d8567ff9f11d338ad610754682372 (diff) |
revised the debdelta method
Diffstat (limited to 'test')
-rwxr-xr-x | test/methods/debdelta/test-signature | 6 | ||||
-rw-r--r-- | test/methods/debdelta/test.txt | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/test/methods/debdelta/test-signature b/test/methods/debdelta/test-signature index f9fa678ff..952260322 100755 --- a/test/methods/debdelta/test-signature +++ b/test/methods/debdelta/test-signature @@ -5,7 +5,7 @@ deb=$1 verify_deb() { [ "$deb" = "" ] && return - md5sum_1=$(apt-cache show `dpkg -I "$deb" | sed -n "s/Package: //p"` | sed -n "s/MD5sum: //p") + md5sum_1=$(LD_LIBRARY_PATH=../../../bin ../../../bin/apt-cache show `dpkg -I "$deb" | sed -n "s/Package: //p"` | sed -n "s/MD5sum: //p") md5sum_2=$(md5sum "$deb" | gawk '{print $1}') for s1 in $md5sum_1; do for s2 in $md5sum_2; do @@ -29,7 +29,7 @@ make_deb() { usage exit 1 fi - result_deb=$(LD_LIBRARY_PATH=../../../bin ../../../bin/methods/debdelta $1 $2 | sed -n "s/Result-Deb: //p") + result_deb=$(LD_LIBRARY_PATH=../../../bin ../../../bin/methods/debdelta $1 $2 | sed -n "s/Filename: //p") deb=$result_deb verify_deb } @@ -44,4 +44,4 @@ testmethod() { } #testmethod -make_deb $1 $2 +make_deb $1 $2
\ No newline at end of file diff --git a/test/methods/debdelta/test.txt b/test/methods/debdelta/test.txt index dbcae64d1..8b5f8f189 100644 --- a/test/methods/debdelta/test.txt +++ b/test/methods/debdelta/test.txt @@ -1 +1,3 @@ -./test-signature /home/ishan/devel/apt/testrepo/testitems/cpp-4.6_4.6.0-2_amd64.deb /home/ishan/devel/apt/testrepo/testitems/cpp-4.6_4.6.0-2_4.6.0-7_amd64.debdelta +./test-signature /home/ishan/devel/apt/testrepo/testitems/cpp-4.6_4.6.0-2_4.6.0-7_amd64.debdelta /home/ishan/devel/apt/testrepo/testitems/cpp-4.6_4.6.0-2_amd64.deb + +sudo LD_LIBRARY_PATH=.. ./debdelta /home/ishan/devel/apt/testrepo/testitems/cpp-4.6_4.6.0-2_4.6.0-7_amd64.debdelta /home/ishan/devel/apt/testrepo/testitems/cpp-4.6_4.6.0-2_amd64.deb |