mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 05:53:22 -07:00
* debian/control:
- suggest pastebinit, drop w3m
This commit is contained in:
parent
07d0e86880
commit
3b2a4f64dc
3 changed files with 11 additions and 4 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -1,6 +1,7 @@
|
|||
byobu (5.104) unreleased; urgency=medium
|
||||
|
||||
* UNRELEASED
|
||||
* debian/control:
|
||||
- suggest pastebinit, drop w3m
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 28 Feb 2016 23:24:33 -0600
|
||||
|
||||
|
|
2
debian/control
vendored
2
debian/control
vendored
|
@ -28,11 +28,11 @@ Suggests:
|
|||
gnome-terminal,
|
||||
gnupg,
|
||||
lsb-release,
|
||||
pastebinit,
|
||||
po-debconf,
|
||||
ttf-ubuntu-font-family (>= 0.80-0ubuntu1~medium),
|
||||
update-notifier-common,
|
||||
vim,
|
||||
w3m,
|
||||
wireless-tools
|
||||
Provides:
|
||||
screen-profiles,
|
||||
|
|
|
@ -19,11 +19,17 @@
|
|||
|
||||
set -e
|
||||
|
||||
if ! command -v pastebinit >/dev/null 2>&1; then
|
||||
echo "ERROR: pastebinit not found. Hint:" 1>&2
|
||||
echo " sudo apt install pastebinit" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export_packages() {
|
||||
if [ "$OBJECT" = "-" ]; then
|
||||
dpkg -l
|
||||
elif echo "$OBJECT" | grep -qs ".*://.*"; then
|
||||
dpkg -l | lzma -9 -f -c | base64 | pastebinit -b "$OBJECT"
|
||||
dpkg -l | gzip -9 | base64 | pastebinit -b "$OBJECT"
|
||||
else
|
||||
dpkg -l > "$OBJECT"
|
||||
fi
|
||||
|
@ -33,7 +39,7 @@ import_packages() {
|
|||
if [ "$OBJECT" = "-" ]; then
|
||||
sudo apt install $(cat /dev/stdin | grep "^ii\s" | col2)
|
||||
elif echo "$OBJECT" | grep -qs ".*://.*"; then
|
||||
sudo apt install $(wget -q -O- "$OBJECT" | grep -A 999999999 '<div class="paste"><pre>' | grep -B 999999999 "^</pre>" | sed -e "s/.*<pre>//" -e "s/^<\/pre>.*//" | base64 -d | lzma -d | grep "^ii\s" | col2)
|
||||
sudo apt install $(wget -q -O- "$OBJECT" | grep -A 999999999 '<div class="paste"><pre>' | grep -B 999999999 "^</pre>" | sed -e "s/.*<pre>//" -e "s/^<\/pre>.*//" | base64 -d | gunzip | grep "^ii\s" | col2)
|
||||
else
|
||||
sudo apt install $(cat "$OBJECT" | grep "^ii\s" | col2)
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue