Skip to content

Commit

Permalink
updated readme and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Sep 16, 2023
1 parent eb2325a commit dc550f5
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 31 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Personal Package Archive (PPA) for stable MRS deb packages.

## Adding the PPA

```bash
curl https://ctu-mrs.github.io/ppa-stable/add_ppa.sh | bash
```
Expand All @@ -12,3 +14,9 @@ curl https://ctu-mrs.github.io/ppa-stable/add_ppa.sh | bash
sudo apt-get -y install aptitude
sudo apt remove $(aptitude search -F '%p' '~S ~i ?origin("ctu-mrs") ?label("stable")')
```

## Removing the PPA

```bash
curl https://ctu-mrs.github.io/ppa-stable/remove_ppa.sh | bash
```
4 changes: 2 additions & 2 deletions resources/apt/ctu-mrs-ppa-preferences.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Package: *
Pin: release o=ctu-mrs,l=unstable,c=
Pin-Priority: 1110
Pin: release o=ctu-mrs,l=stable,c=
Pin-Priority: 1111
1 change: 1 addition & 0 deletions resources/rosdep/ctu-mrs-amd64.list
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
yaml https://ctu-mrs.github.io/ppa-stable/generated_amd64.yaml
yaml https://ctu-mrs.github.io/ppa-stable/generated_amd64_testing.yaml
yaml https://ctu-mrs.github.io/ppa-stable/handcrafted_amd64.yaml
yaml https://ctu-mrs.github.io/ppa-stable/handcrafted_common.yaml
24 changes: 0 additions & 24 deletions resources/rosdep/handcrafted_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,8 @@ nlopt:
ubuntu: [ros-noetic-nlopt]
px4:
ubuntu: [ros-noetic-px4]
mrs_uav_trajectory_loader:
ubuntu: [ros-noetic-mrs-uav-trajectory-loader]
mrs_uav_path_loader:
ubuntu: [ros-noetic-mrs-uav-path-loader]
mrs_uav_dji_tello_api:
ubuntu: [ros-noetic-mrs-uav-dji-tello-api]
euler_counter_example:
ubuntu: [ros-noetic-euler-counter-example]
multireconfigure:
ubuntu: [ros-noetic-multireconfigure]
tf_connector:
ubuntu: [ros-noetic-tf-connector]
tf_estimator:
ubuntu: [ros-noetic-tf-estimator]
tf_reconfigure:
ubuntu: [ros-noetic-tf-reconfigure]
mrs_utils:
ubuntu: [ros-noetic-mrs-utils]
mrs_uav_modules:
ubuntu: [ros-noetic-mrs-uav-modules]
mrs_serial:
ubuntu: [ros-noetic-mrs-serial]
mavlink_sitl_gazebo:
ubuntu: [ros-noetic-mavlink-sitl-gazebo]
mrs_gazebo_common_resources:
ubuntu: [ros-noetic-mrs-gazebo-common-resources]
ouster_ros:
ubuntu: [ros-noetic-ouster-ros]

Expand Down
10 changes: 5 additions & 5 deletions resources/scripts/add_ppa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ set -e
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
trap 'echo "$0: \"${last_command}\" command failed with exit code $?"' ERR

echo "$0: Adding MRS stable PPA repository"
echo "$0: Adding MRS Stable PPA repository"

sudo apt-get -y install curl gpg dpkg-dev

ARCH=$(dpkg-architecture -qDEB_HOST_ARCH)

curl -s --compressed "https://ctu-mrs.github.io/ppa-stable/ctu-mrs.gpg" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/ctu-mrs.gpg >/dev/null
sudo curl -s --compressed -o /etc/apt/sources.list.d/ctu-mrs.list "https://ctu-mrs.github.io/ppa-stable/ctu-mrs-apt.list"
sudo curl -s --compressed -o /etc/apt/preferences.d/ctu-mrs-ppa-preferences "https://ctu-mrs.github.io/ppa-stable/ctu-mrs-ppa-preferences.txt"
sudo curl -s --compressed -o /etc/ros/rosdep/sources.list.d/ctu-mrs.list "https://ctu-mrs.github.io/ppa-stable/ctu-mrs-$ARCH.list"
sudo curl -s --compressed -o /etc/apt/sources.list.d/ctu-mrs-stable.list "https://ctu-mrs.github.io/ppa-stable/ctu-mrs-apt.list"
sudo curl -s --compressed -o /etc/apt/preferences.d/ctu-mrs-stable-preferences "https://ctu-mrs.github.io/ppa-stable/ctu-mrs-ppa-preferences.txt"
sudo curl -s --compressed -o /etc/ros/rosdep/sources.list.d/ctu-mrs-stable.list "https://ctu-mrs.github.io/ppa-stable/ctu-mrs-$ARCH.list"
sudo apt-get -y update

rosdep update

echo "$0: Finished adding MRS stable PPA repository"
echo "$0: Finished adding MRS Stable PPA repository"
12 changes: 12 additions & 0 deletions resources/scripts/remove_ppa.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

echo "$0: Removing MRS Stable PPA repository"

sudo rm /etc/apt/sources.list.d/ctu-mrs-stable.list
sudo rm /etc/apt/preferences.d/ctu-mrs-stable-preferences
sudo rm /etc/ros/rosdep/sources.list.d/ctu-mrs-stable.list

sudo apt-get -y update
rosdep update

echo "$0: Finished removing MRS Stable PPA repository"

0 comments on commit dc550f5

Please sign in to comment.