Fix --install=local on SUSE
This commit is contained in:
11
installJRMC
11
installJRMC
@@ -269,16 +269,11 @@ init() {
|
|||||||
# Currently there is no remote repository for SUSE
|
# Currently there is no remote repository for SUSE
|
||||||
# installJRMC can easily create one but I'd rather a SUSEian provide it
|
# installJRMC can easily create one but I'd rather a SUSEian provide it
|
||||||
# So use local rpmbuild method by default for SUSE
|
# So use local rpmbuild method by default for SUSE
|
||||||
if [[ $# -le 2 ]]; then
|
if ((REPO_INSTALL_SWITCH)); then
|
||||||
case "$1" in
|
debug "Automatically using --install=local for SUSE"
|
||||||
--debug| -d| --verbose| -y| --yes| --auto| --mcrepo| --mcversion| \
|
|
||||||
--arch| --betapass| --restorefile| --outputdir| --no-update)
|
|
||||||
debug "Automatically using --install local for SUSE"
|
|
||||||
REPO_INSTALL_SWITCH=0
|
REPO_INSTALL_SWITCH=0
|
||||||
BUILD_SWITCH=1
|
BUILD_SWITCH=1
|
||||||
LOCAL_INSTALL_SWITCH=1
|
LOCAL_INSTALL_SWITCH=1
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@@ -295,7 +290,7 @@ init() {
|
|||||||
else
|
else
|
||||||
err "OS detection failed!"
|
err "OS detection failed!"
|
||||||
ask_ok "Continue with manual installation?" || exit 1
|
ask_ok "Continue with manual installation?" || exit 1
|
||||||
debug "Automatically using --install local for unknown distro"
|
debug "Automatically using --install=local for unknown distro"
|
||||||
ID="unknown"
|
ID="unknown"
|
||||||
REPO_INSTALL_SWITCH=0
|
REPO_INSTALL_SWITCH=0
|
||||||
BUILD_SWITCH=1
|
BUILD_SWITCH=1
|
||||||
|
|||||||
Reference in New Issue
Block a user