Verified Commit bb2765c3 authored by likewhoa's avatar likewhoa
Browse files

Fixes for Specter upgrade process

parent f2d7c875
......@@ -2285,6 +2285,9 @@ EOF
# Check for package dependencies
_check_pkg "gcc" --update-mirrors
# Check for python-pip
_check_pkg pip3 python-pip
if ! pacman -Q libusb 1>/dev/null; then
_pacman_update_mirrors
......@@ -2298,9 +2301,16 @@ EOF
sudo pacman --quiet -S --noconfirm libusb
fi
python3 -m venv "$HOME"/.venv_specter &>/dev/null
python3 -m venv "$HOME"/.venv_specter &>/dev/null || return 1
cd "$HOME"/specter-"$specter_version" || exit
# Install dependencies through pip3
"$HOME"/.venv_specter/bin/pip3 install -r requirements.txt &>/dev/null || return 1
# Set version number
sed -i "s/version=\".*/version=\"${specter_version}\",/" setup.py
"$HOME"/.venv_specter/bin/python3 setup.py install &>/dev/null || return 1
cat <<EOF
......@@ -2378,8 +2388,16 @@ EOF
fi
done
cd "$HOME"/specter-"$specter_version" || exit
"$HOME"/.venv_specter/bin/python3 setup.py install &>/dev/null
# Install dependencies through pip
"$HOME"/.venv_specter/bin/pip3 install -r requirements.txt &>/dev/null || return 1
# Set version number
sed -i "s/version=\".*/version=\"${specter_version}\",/" setup.py
"$HOME"/.venv_specter/bin/python3 setup.py install &>/dev/null || return 1
_specter_create_systemd_unit_file
......@@ -2395,7 +2413,7 @@ EOF
_specter_hww_udev_rules
sudo systemctl restart --quiet specter
sudo systemctl reload-or-restart --quiet specter
return 0
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment