Skip to content

Commit

Permalink
Deprecate apt support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kharacternyk committed May 14, 2020
1 parent bc33c57 commit 8d0bed9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 33 deletions.
30 changes: 15 additions & 15 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ Highlighting

* Packages

+---------------------+--------------------+---------+----------+
| Package/Distro | Arch | Void | Debian* |
+=====================+====================+=========+==========+
| Normal | Red |
+---------------------+-----------------------------------------+
| Explicitly installed| Blue |
+---------------------+------------------------------+----------+
| Orphan | Green (outlined) | **X** |
+---------------------+--------------------+---------+----------+
| Outdated | Yellow (outlined) | **X** |
+---------------------+--------------------+--------------------+
| Foreign (AUR, etc.) | Purple | **X** |
+---------------------+--------------------+--------------------+
| Virtual (see below) | White (translucent)| **X** |
+---------------------+--------------------+--------------------+
+---------------------+--------------------+-------+
| Package/Distro | Arch | Void |
+=====================+====================+=======+
| Normal | Red |
+---------------------+----------------------------+
| Explicitly installed| Blue |
+---------------------+----------------------------+
| Orphan | Green (outlined) |
+---------------------+--------------------+-------+
| Outdated | Yellow (outlined) | **X** |
+---------------------+--------------------+-------+
| Foreign (AUR, etc.) | Purple | **X** |
+---------------------+--------------------+-------+
| Virtual (see below) | White (translucent)| **X** |
+---------------------+--------------------+-------+

* Dependencies

Expand Down
19 changes: 1 addition & 18 deletions pacwall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,20 +105,6 @@ generate_graph_pactree() {
DEFAULT_NODE_COLOR=$VNODE
}

generate_graph_apt() {
PKGS="$(apt list --installed 2> /dev/null | sed -e 's/\/.*$//')"
apt-cache dotty $PKGS > raw/packages
sed -E \
-e '/^[^"]/d' \
-e '/\[shape/d' \
-e '/\[color=/d' \
-e 's/\[.*\]//' \
"raw/packages" > "stripped/packages"

PKGS=packages
DEFAULT_NODE_COLOR=$NODE
}

generate_graph_xbps() {
# Get all explicitly installed packages in a space separated list
EPKGS=$(xbps-query -m)
Expand Down Expand Up @@ -297,10 +283,7 @@ main() {
use_wal_colors
fi

if command -v apt > /dev/null; then
echo 'Using apt to generate the graph'
generate_graph_apt
elif command -v pactree > /dev/null; then
if command -v pactree > /dev/null; then
echo 'Using pactree to generate the graph'
generate_graph_pactree "$@"
elif command -v xbps-query > /dev/null; then
Expand Down

0 comments on commit 8d0bed9

Please sign in to comment.