Avoid errors when optional meta files are not present
Fix a stupid bug in 'auto' dependency generator. I forgot to add .sw.devel to the $pkgname making the prereq illegal (and causing gendist to core)
This commit is contained in:
parent
483de5e1ea
commit
f9a1b91686
@ -5,7 +5,7 @@
|
|||||||
# Define tool programs
|
# Define tool programs
|
||||||
# *only* platform specific packaging tools should be listed here
|
# *only* platform specific packaging tools should be listed here
|
||||||
# generic tools go in buildpkg.functions
|
# generic tools go in buildpkg.functions
|
||||||
GENDIST=/usr/sbin/gendist
|
GENDIST="/usr/sbin/gendist"
|
||||||
|
|
||||||
GZIP=/usr/people/tgc/bin/gzip
|
GZIP=/usr/people/tgc/bin/gzip
|
||||||
BZIP2=/usr/local/bin/bzip2
|
BZIP2=/usr/local/bin/bzip2
|
||||||
@ -249,17 +249,19 @@ fetch_imageconf()
|
|||||||
#
|
#
|
||||||
fetch_depends()
|
fetch_depends()
|
||||||
{
|
{
|
||||||
reqidx=0
|
if [ -r $depends ]; then
|
||||||
while read ss req
|
reqidx=0
|
||||||
do
|
while read ss req
|
||||||
reqs[$reqidx]=$ss
|
do
|
||||||
if [ "$req" == "auto" ]; then # auto create depend on sw.base
|
reqs[$reqidx]=$ss
|
||||||
nver=$(fix_ver "$version-$pkgver")
|
if [ "$req" == "auto" ]; then # auto create depend on sw.base
|
||||||
req="$pkgname $nver $nver"
|
nver=$(fix_ver "$version-$pkgver")
|
||||||
fi
|
req="$pkgname.sw.base $nver $nver"
|
||||||
reqp[$reqidx]=$req
|
fi
|
||||||
let "reqidx = $reqidx + 1"
|
reqp[$reqidx]=$req
|
||||||
done < $depends
|
let "reqidx = $reqidx + 1"
|
||||||
|
done < $depends
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# fetch_ops(): Fetch ops
|
# fetch_ops(): Fetch ops
|
||||||
@ -268,33 +270,37 @@ fetch_depends()
|
|||||||
# and the opfiles and opscript arrays
|
# and the opfiles and opscript arrays
|
||||||
fetch_ops()
|
fetch_ops()
|
||||||
{
|
{
|
||||||
opsidx=0
|
if [ -r $opsfile ]; then
|
||||||
while read optype op
|
opsidx=0
|
||||||
do
|
while read optype op
|
||||||
case $optype in
|
do
|
||||||
'firstop')
|
case $optype in
|
||||||
firstop="$op"
|
'firstop')
|
||||||
;;
|
firstop="$op"
|
||||||
'lastop')
|
;;
|
||||||
lastop="$op"
|
'lastop')
|
||||||
;;
|
lastop="$op"
|
||||||
esac
|
;;
|
||||||
opfiles[$opsidx]=$optype
|
esac
|
||||||
opscript[$opsidx]=$op
|
opfiles[$opsidx]=$optype
|
||||||
let "opsidx = $opsidx + 1"
|
opscript[$opsidx]=$op
|
||||||
done < $opsfile
|
let "opsidx = $opsidx + 1"
|
||||||
|
done < $opsfile
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#fetch_hide(): Fetch list of files to "hide"
|
#fetch_hide(): Fetch list of files to "hide"
|
||||||
#params: none
|
#params: none
|
||||||
fetch_hide()
|
fetch_hide()
|
||||||
{
|
{
|
||||||
hideidx=0
|
if [ -r $hidefile ]; then
|
||||||
while read filen
|
hideidx=0
|
||||||
do
|
while read filen
|
||||||
hide[$hideidx]=$filen
|
do
|
||||||
let "hideidx = $hideidx + 1"
|
hide[$hideidx]=$filen
|
||||||
done < $hidefile
|
let "hideidx = $hideidx + 1"
|
||||||
|
done < $hidefile
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
##################################
|
##################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user