2020 Updated Nemesis Base Modules

Arch based Porteus community project
User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2554
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

2020 Updated Nemesis Base Modules

Post#151 by ncmprhnsbl » 01 Jun 2020, 08:52

M. Eerie wrote:
28 May 2020, 20:12
Does pman works for you? I'm having troubles pinging to the router resulting in:
seems to be ok here..
M. Eerie wrote:
28 May 2020, 20:12
Also, does pkg2xzm manage new *.zst packages?
yeah, no.. because arch's build of file doesn't handle -z(uncompress) option with zstd archives, which is kind of stupid since they've adopted zstd for their packaging(ironically slackware's file has no such problem) .. so, for the moment, a workaround would be to disable the checking section: ie. comment lines 19~

Code: Select all

[ ! -e $pkg ] && { echo "`gettext "File does not exist."`"; exit 1; }
ftype=`file -bz $1`
[[ ! `grep -o "POSIX tar" <<<$ftype` ]] || [[ ! `grep -o "XZ compressed" <<<$ftype` ]] && bad=0

[ "$bad" ] && { echo "`gettext "This does not appear to be an arch package."`"; exit; }
or maybe something like:

Code: Select all

ftype=`file -b $1`
[[ ! `grep -o "XZ compressed" <<<$ftype` ]] && [[ ! `grep -o "Zstandard compressed data" <<<$ftype` ]] && bad=0
not great but unless your using a * in a dir of random pkgs and other archives, shouldn't be a problem..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply