PKGNAME=blah
PKGVER=0.1
I was then able to to strings filename.pet | tail -2
And it printed out exactly as above.. nice..
But it messed up the archive.. same thing happened with .tar.gz files..
Is there any way to append strings (such as 'VAR=blah') to the end of archives, and then get them back using `cat` or `strings` or similar?
If so, I might make a tmp copy of the akita repo, run it on all pkgs, then if all is well, I will be able to get package info straight from pkgs themselves, without having to extract it, or refer to the repo databse file...
EDIT::
Yet to test this fully.. But got this doing what I want:
Code: Select all
echo "
PKG_NAME=var1
PKG_VER=var2" >> pkg_name.pet
then
Code: Select all
strings pkg_name.pet | tail -3
Code: Select all
901eeb44ea34f71d2da0b7a8a5e14d02
PKG_NAME=bsme
PKG_VER=1.0