Adds info & search actions for template packages
Now we can do --action=info or --action=search for a template. This will not shutdown the template and simply execute search or info command for dnf.
This commit is contained in:
parent
3cc4f5bed3
commit
0a94e59325
@ -95,6 +95,8 @@ if [ "$YUM_ACTION" == "reinstall" ] || [ "$YUM_ACTION" == "upgrade" ] || [ "$YUM
|
|||||||
echo "ERROR: Specify only one package to reinstall template"
|
echo "ERROR: Specify only one package to reinstall template"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
elif [ "$YUM_ACTION" == "search" ] || [ "$YUM_ACTION" == "info" ]; then # No need to shutdown for search/info
|
||||||
|
TEMPLATE_EXCLUDE_OPTS=""
|
||||||
else
|
else
|
||||||
TEMPLATE_EXCLUDE_OPTS="--exclude=`rpm -qa --qf '%{NAME},' qubes-template-\*`"
|
TEMPLATE_EXCLUDE_OPTS="--exclude=`rpm -qa --qf '%{NAME},' qubes-template-\*`"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user