#1701: No error message when packageManager.xml does not exist and package
management is requested
--------------------+-----------------------
Reporter: pierre | Owner: pierre
Type: defect | Status: assigned
Priority: high | Milestone: 2.4
Component: jhalfs | Version: SVN
Severity: normal | Resolution:
Keywords: |
--------------------+-----------------------
Comment (by pierre):
The reason why it is not flagged when trying to copy package Manager;xml
and packInstall.sh to $JHALFSDIR is that it is in a '&&' sequence:
{{{
[[ "$PKGMNGT" = "y" ]] && [[ "$PROGNAME" = "lfs" ]] &&
cp $PKGMNGTDIR/packageManager.xml $JHALFSDIR/ &&
cp $PKGMNGTDIR/packInstall.sh $JHALFSDIR/
}}}
If $PKGMNGTDIR/packageManager.xml does not exist, the non zero exit code
just stops the sequence but does not raise an error...
So replacing with if..then will flag the error. But it'd be better to have
it detected earlier when checking the configuration.
--
Ticket URL: <http://wiki.linuxfromscratch.org/alfs/ticket/1701#comment:2>
ALFS Trac <http://wiki.linuxfromscratch.org/alfs/>
Automated Linux From Scratch
--
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page