mirror of
https://github.com/rworkman/slackpkg
synced 2024-11-15 19:47:54 +01:00
Fix output if package is incorrectly named
Thanks to phenixia2003 (SeB) on LQ for the patch.
This commit is contained in:
parent
775c2fa391
commit
7d8b3382ad
1 changed files with 8 additions and 1 deletions
|
@ -23,13 +23,20 @@
|
|||
VERSION=$(NF-2)
|
||||
NF=NF-3
|
||||
NAME=$0
|
||||
|
||||
PKGNAME=NAME"-"VERSION"-"ARCH"-"RELEASE
|
||||
if (VERSION == "") { VERSION="UNKNOWN" ; }
|
||||
if (ARCH == "") { ARCH= "UNKNOWN" ; }
|
||||
if (RELEASE == "") { RELEASE= "UNKNOWN" ; }
|
||||
} else {
|
||||
RELEASE=none
|
||||
ARCH=none
|
||||
VERSION=none
|
||||
EXTENSION=tgz
|
||||
NAME=$0
|
||||
|
||||
PKGNAME=NAME"-"VERSION"-"ARCH"-"RELEASE
|
||||
}
|
||||
FS=fs
|
||||
print DIR" "NAME" "VERSION" "ARCH" "RELEASE" "NAME"-"VERSION"-"ARCH"-"RELEASE" "PATH" "EXTENSION
|
||||
print DIR" "NAME" "VERSION" "ARCH" "RELEASE" "PKGNAME" "PATH" "EXTENSION
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue