[gobolinux-devel] Fix for verifying packages in tar.bz2

Lucas C. Villa Real lucasvr at gobolinux.org
Tue Apr 17 14:06:30 UTC 2007


On 4/17/07, Jonas Karlsson <jonka750 at student.liu.se> wrote:
> Here's a fix for verifying packed packages. First is a fix so that the
> correct package name was deduced. Then I changed the behaviour of
> Check_FileHash to take a prefix instead of appname and version because
> with the latter it would have tried to verify the filehash of the
> installed program instead of the contents of the tarball (which is
> unpacked into goboTemp).

--- Functions/File      7 Mar 2007 21:08:43 -0000       1.33
+++ Functions/File      17 Apr 2007 12:44:03 -0000
@@ -177,9 +177,11 @@
 function Check_FileHash() {
 ### python check_filehashes CHANGELOG
 # 10/10/2004 - [calica] First version
-   Parameters "$@" program version hash_file
+   Parameters "$@" prefix hash_file
+   cleanhashfilename=$(echo $hash_file | sed s,$prefix/,,g)
    local rtn
-   $sudo_exec ListProgramFiles --files "$program" "$version" | grep
-v "$hash_file" | $sudo_exec python -c """#
+   Quiet pushd $prefix

Is it really necessary to pushd $prefix? There's already a 'cd
$prefix' command in VerifyProgram. One of these should be removed,
probably.

-- 
Lucas
powered by /dev/dsp


More information about the gobolinux-devel mailing list