Skip to content

Commit

Permalink
Uninstalls RPM in prep-dev script
Browse files Browse the repository at this point in the history
Follow up to #587.

The `dnf install -y <local_file>` action will not reinstall a package
if the versions are the same. Since we expect package contents to
change, but not version strings, when running `make clone`, let's make
sure to uninstall the rpm package in dom0 so that the install action
always takes effect.
  • Loading branch information
Conor Schaefer committed Sep 11, 2020
1 parent ee0855c commit 7df762c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/prep-dev
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ if [[ -z "$latest_rpm" ]]; then
fi

echo "Deploying Salt config..."
echo "Uninstalling any previous rpm versions..."
sudo dnf remove -y securedrop-worsktation-dom0-config || true
echo "Installing RPM at $latest_rpm ..."
sudo dnf install -y "$latest_rpm"

Expand Down

0 comments on commit 7df762c

Please sign in to comment.