From bc4bc0144485331691d007b82c49668ec15d99e9 Mon Sep 17 00:00:00 2001 From: xqyz Date: Mon, 22 Aug 2022 15:31:49 +0200 Subject: [PATCH 01/10] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 0da5a6b..e130fe4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +Additions to avoid `Directory nonexistent` error +
From 3b2405b44a75d2fc33f34797a51ba3bcc3199927 Mon Sep 17 00:00:00 2001 From: xqyz Date: Mon, 22 Aug 2022 15:38:54 +0200 Subject: [PATCH 02/10] UNA-NONEXISTENT: Correcting nonexistent problem --- una-updater | 3 +++ 1 file changed, 3 insertions(+) diff --git a/una-updater b/una-updater index 3531c7b..3021aa5 100755 --- a/una-updater +++ b/una-updater @@ -16,6 +16,9 @@ _ui() { zenity --question --text 'Updated packages are available. Do you wish to upgrade?' --width 200 && x-terminal-emulator -e 'una upgrade; echo; echo "You can now close this window or press ENTER to close."; read enter' & } +# UNA-NONEXISTENT: Adding nonexistent directory + mkdir -p /etc/una + while true; do source /etc/una/config &>/dev/null if [[ "${auto_update}" == "true" ]]; then From 18f48161b988c058b92ad37428bfef531a27a3d3 Mon Sep 17 00:00:00 2001 From: xqyz Date: Mon, 22 Aug 2022 15:38:59 +0200 Subject: [PATCH 03/10] UNA-NONEXISTENT: Correcting nonexistent problem --- una | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/una b/una index a048585..85d22c9 100755 --- a/una +++ b/una @@ -551,6 +551,9 @@ fi trap "rm -f "${LOCKFILE:?}"; tput cnorm; exit" INT TERM EXIT echo $$ > ${LOCKFILE} +# UNA-NONEXISTENT: Adding nonexistent directory + mkdir -p /etc/una + if [[ ! -d '/var/lib/una' ]] || { [[ ! -f '/var/lib/una/status' ]] || { [[ ! -f "$HOME/.config/autostart/una-updater.desktop" ]] || { [[ ! -f '/var/lib/una/cache' ]] || { [[ ! -d "${HOME}/.cache/una" ]] || [[ ! -f "/etc/una/config" ]]; } } } }; then echo info 'creating una directory and config files' @@ -565,6 +568,8 @@ X-GNOME-Autostart-enabled=true Name=Una Updater Comment=Auto-updater for APT and MPR packages. EOF + # UNA-NONEXISTENT: Adding nonexistent directory + mkdir -p /etc/una sudo sh -c "echo 'auto_update=true # enable/disable update notifications; set to true or false' >/etc/una/config" sudo sh -c "echo 'update_check_gap=1d # time gap between checking for updates if auto_update=true; s for seconds (the default), m for minutes, h for hours or d for days' >/etc/una/config" sudo mkdir -p /var/lib/una /etc/una From 145977929c287f38a7b7742888ff0d20eef30f83 Mon Sep 17 00:00:00 2001 From: xqyz Date: Mon, 22 Aug 2022 15:41:58 +0200 Subject: [PATCH 04/10] UNA-NONEXISTENT: Adding nonexistent mention --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e130fe4..07dbb34 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Additions to avoid `Directory nonexistent` error +Additions to avoid `Directory nonexistent` error.
From 1c2133f0d663f697788dadc4bd4e0b2efde61152 Mon Sep 17 00:00:00 2001 From: xqyz Date: Mon, 22 Aug 2022 15:43:35 +0200 Subject: [PATCH 05/10] UNA-NONEXISTENT: Adding debug --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.sh b/install.sh index c254bf3..c66e593 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -xv + wget -qO - 'https://proget.hunterwittenborn.com/debian-feeds/makedeb.pub' | \ gpg --dearmor | \ sudo tee /usr/share/keyrings/makedeb-archive-keyring.gpg &> /dev/null @@ -13,3 +15,5 @@ git clone https://mpr.makedeb.org/una-bin.git && cd una-bin makedeb -H "MPR-Package: una-bin" -H "MPR-Version: 3.2.0" -si && cd .. && rm -rf una-bin una update; una help + +set +xv From 2551cbdd0f41422c7f42a4a0230805a621856efc Mon Sep 17 00:00:00 2001 From: xqyz Date: Mon, 22 Aug 2022 15:57:03 +0200 Subject: [PATCH 06/10] UNA-NONEXISTENT: Correcting nonexistent problem --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.sh b/install.sh index c66e593..04b91a1 100755 --- a/install.sh +++ b/install.sh @@ -11,7 +11,11 @@ sudo tee /etc/apt/sources.list.d/makedeb.list sudo apt-get update && sudo apt-get install makedeb +# UNA-NONEXISTENT: Adding nonexistent directory + mkdir -p /etc/una + git clone https://mpr.makedeb.org/una-bin.git && cd una-bin + makedeb -H "MPR-Package: una-bin" -H "MPR-Version: 3.2.0" -si && cd .. && rm -rf una-bin una update; una help From 182f1d152fdd1791780120b573ee0cb722e65e6c Mon Sep 17 00:00:00 2001 From: xqyz Date: Mon, 22 Aug 2022 16:16:05 +0200 Subject: [PATCH 07/10] UNA-NONEXISTENT: Correcting nonexistent problem Adding execution rights --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 04b91a1..4830af9 100755 --- a/install.sh +++ b/install.sh @@ -12,7 +12,7 @@ sudo tee /etc/apt/sources.list.d/makedeb.list sudo apt-get update && sudo apt-get install makedeb # UNA-NONEXISTENT: Adding nonexistent directory - mkdir -p /etc/una + sudo mkdir -p /etc/una git clone https://mpr.makedeb.org/una-bin.git && cd una-bin From 41394c6d79b9ca96304da0e3dda1360f29ba710f Mon Sep 17 00:00:00 2001 From: xqyz Date: Mon, 22 Aug 2022 16:16:06 +0200 Subject: [PATCH 08/10] UNA-NONEXISTENT: Correcting nonexistent problem Adding execution rights --- una | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/una b/una index 85d22c9..8323cf7 100755 --- a/una +++ b/una @@ -552,7 +552,7 @@ trap "rm -f "${LOCKFILE:?}"; tput cnorm; exit" INT TERM EXIT echo $$ > ${LOCKFILE} # UNA-NONEXISTENT: Adding nonexistent directory - mkdir -p /etc/una + sudo mkdir -p /etc/una if [[ ! -d '/var/lib/una' ]] || { [[ ! -f '/var/lib/una/status' ]] || { [[ ! -f "$HOME/.config/autostart/una-updater.desktop" ]] || { [[ ! -f '/var/lib/una/cache' ]] || { [[ ! -d "${HOME}/.cache/una" ]] || [[ ! -f "/etc/una/config" ]]; } } } }; then echo @@ -569,7 +569,7 @@ Name=Una Updater Comment=Auto-updater for APT and MPR packages. EOF # UNA-NONEXISTENT: Adding nonexistent directory - mkdir -p /etc/una + sudo mkdir -p /etc/una sudo sh -c "echo 'auto_update=true # enable/disable update notifications; set to true or false' >/etc/una/config" sudo sh -c "echo 'update_check_gap=1d # time gap between checking for updates if auto_update=true; s for seconds (the default), m for minutes, h for hours or d for days' >/etc/una/config" sudo mkdir -p /var/lib/una /etc/una From ab46dc0dcfb6eafcc2e3d9b683a09b5d990f4023 Mon Sep 17 00:00:00 2001 From: xqyz Date: Mon, 22 Aug 2022 16:16:07 +0200 Subject: [PATCH 09/10] UNA-NONEXISTENT: Correcting nonexistent problem Adding execution rights --- una-updater | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/una-updater b/una-updater index 3021aa5..f28ac5b 100755 --- a/una-updater +++ b/una-updater @@ -17,7 +17,7 @@ _ui() { } # UNA-NONEXISTENT: Adding nonexistent directory - mkdir -p /etc/una + sudo mkdir -p /etc/una while true; do source /etc/una/config &>/dev/null From b2f5225181a52c995605dc5afe0477eff3d4d6f6 Mon Sep 17 00:00:00 2001 From: xqyz Date: Mon, 22 Aug 2022 16:25:54 +0200 Subject: [PATCH 10/10] UNA-NONEXISTENT: Correcting nonexistent problem Removing debug --- install.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/install.sh b/install.sh index 4830af9..5c1d08d 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,5 @@ #!/bin/bash -set -xv - wget -qO - 'https://proget.hunterwittenborn.com/debian-feeds/makedeb.pub' | \ gpg --dearmor | \ sudo tee /usr/share/keyrings/makedeb-archive-keyring.gpg &> /dev/null @@ -19,5 +17,3 @@ git clone https://mpr.makedeb.org/una-bin.git && cd una-bin makedeb -H "MPR-Package: una-bin" -H "MPR-Version: 3.2.0" -si && cd .. && rm -rf una-bin una update; una help - -set +xv