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:
Kushal Das 2018-10-30 08:06:15 +05:30
parent 3cc4f5bed3
commit 0a94e59325
No known key found for this signature in database
GPG Key ID: C65FF007C75766ED

View File

@ -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