Opened 7 years ago

Closed 7 years ago

#1701 closed defect (fixed)

No error message when packageManager.xml does not exist and package management is requested

Reported by: Pierre Labastie Owned by: Pierre Labastie
Priority: high Milestone: 2.4
Component: jhalfs Version: SVN
Severity: normal Keywords:
Cc:

Description

The jhalfs script should test this and exit if not found...

Change History (3)

comment:1 by Pierre Labastie, 7 years ago

Owner: changed from alfs-log@… to Pierre Labastie
Status: newassigned

comment:2 by Pierre Labastie, 7 years ago

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.

comment:3 by Pierre Labastie, 7 years ago

Resolution: fixed
Status: assignedclosed

Fixed at r3926

Note: See TracTickets for help on using tickets.