Fix --install rpm
This commit is contained in:
@@ -496,7 +496,6 @@ buildRPM() {
|
|||||||
declare id i rpmbuild_cmd
|
declare id i rpmbuild_cmd
|
||||||
declare -a requires recommends
|
declare -a requires recommends
|
||||||
declare -A dupes
|
declare -A dupes
|
||||||
declare -g MCRPM="$OUTPUTDIR/RPMS/x86_64/MediaCenter-$MCVERSION.x86_64.rpm"
|
|
||||||
|
|
||||||
# skip rebuilding the rpm if it already exists
|
# skip rebuilding the rpm if it already exists
|
||||||
if [[ -f "$MCRPM" ]]; then
|
if [[ -f "$MCRPM" ]]; then
|
||||||
@@ -1462,6 +1461,8 @@ main() {
|
|||||||
[[ "$VERSION_SOURCE" == "user input" ]] && MCPKG="$MCPKG=$MCVERSION"
|
[[ "$VERSION_SOURCE" == "user input" ]] && MCPKG="$MCPKG=$MCVERSION"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
declare -g MCRPM="$OUTPUTDIR/RPMS/x86_64/MediaCenter-$MCVERSION.x86_64.rpm"
|
||||||
|
|
||||||
if (( UNINSTALL_SWITCH )); then
|
if (( UNINSTALL_SWITCH )); then
|
||||||
uninstall
|
uninstall
|
||||||
exit $?
|
exit $?
|
||||||
|
|||||||
Reference in New Issue
Block a user