adapt to wget2
This commit is contained in:
parent
fac8fff2ed
commit
8a643d1ec6
1 changed files with 6 additions and 3 deletions
|
|
@ -28,14 +28,17 @@
|
|||
# Include Beaker environment
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PACKAGE=${PACKAGE:-wget}
|
||||
PACKAGES='wget'
|
||||
if rlIsFedora '>= 40'; then
|
||||
PACKAGES="wget2"
|
||||
fi
|
||||
WEBSITE="https://www.redhat.com/en"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlAssertRpm $PACKAGES
|
||||
if [ $? -ne 0 ]; then
|
||||
rlDie "Package $PACKAGE not installed"
|
||||
rlDie "Package $PACKAGES not installed"
|
||||
fi
|
||||
rlLog "PC name: $(hostname) user: $(whoami)"
|
||||
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue