[gobolinux-devel] Gen_FileHash()
Lucas C. Villa Real
lucasvr at gobolinux.org
Thu Jan 25 18:03:34 UTC 2007
On 1/25/07, Lucas C. Villa Real <lucasvr at gobolinux.org> wrote:
> We have a function inside Scripts at Functions/File called
> Gen_FileHash(). This function is used to create Resources/FileHash and
> FileHash.sig, called by SignProgram.
>
> I'm going to pack a new release of Scripts here, and I've found that
> Gen_FileHash() currently uses 'ListProgramFiles --files', leaving
> symlinks out of the game. This is a problem for our Scripts package,
> which is shipped with some symlinks inside lib/python/site-packages
> pointing to its bin directory. The symlinks are not taken into account
> for the Hash generation, but VerifyProgram will abort when installing
> that package, saying that there are some unknown files not listed in
> the hash.
>
> Is there a reason to use --files on ListProgramFiles that I'm not aware of?
Well, it looks like what we really want to use is "-xtype f" instead
of "-type f" in the find command inside that function. Tested and
worked fine here.
--
Lucas
powered by /dev/dsp
More information about the gobolinux-devel
mailing list