summaryrefslogtreecommitdiff
path: root/selfpublish.sh
diff options
context:
space:
mode:
Diffstat (limited to 'selfpublish.sh')
-rw-r--r--selfpublish.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/selfpublish.sh b/selfpublish.sh
index 1d97356..072ee6e 100644
--- a/selfpublish.sh
+++ b/selfpublish.sh
@@ -83,10 +83,12 @@ dpkg_install()
83 apt-cache policy | grep -q 'http://httpredir.debian.org/debian buster-backports/main' || 83 apt-cache policy | grep -q 'http://httpredir.debian.org/debian buster-backports/main' ||
84 write_line_once /etc/apt/sources.list.d/buster-backports.list \ 84 write_line_once /etc/apt/sources.list.d/buster-backports.list \
85 'deb http://httpredir.debian.org/debian buster-backports main' 85 'deb http://httpredir.debian.org/debian buster-backports main'
86 as_root $SHELL -c "set -$- +e; dpkg -i $*; apt-get -t buster-backports -f install"
87 ;;
88 *)
89 as_root $SHELL -c "set -$- +e; dpkg -i $*; apt-get -f install"
86 ;; 90 ;;
87 esac 91 esac
88
89 as_root $SHELL -c "set -$- +e; dpkg -i $*; apt-get -t buster-backports -f install"
90} 92}
91 93
92fmt_dependencies() 94fmt_dependencies()
@@ -539,7 +541,7 @@ equivocate()
539 cd "$destdir" 541 cd "$destdir"
540 control_file > ./control 542 control_file > ./control
541 equivs-build ./control >&2 543 equivs-build ./control >&2
542 DEB=${SELF_PACKAGE}_${SELF_VERSION}_all.deb 544 DEB=../${SELF_PACKAGE}_${SELF_VERSION}_all.deb
543 545
544 if ! [ "$NO_APT" ] 546 if ! [ "$NO_APT" ]
545 then 547 then
@@ -740,7 +742,7 @@ install_self_to_site()
740 cp -Tuv "$src" "$dst" >&2 742 cp -Tuv "$src" "$dst" >&2
741 cp -Tuv "$src" "$dst".txt >&2 743 cp -Tuv "$src" "$dst".txt >&2
742 fi 744 fi
743 DEB="${SELF_PACKAGE}_${SELF_VERSION}_all.deb" 745 DEB=${SELF_PACKAGE}_${SELF_VERSION}_all.deb
744 if [ -e "$DEB" ] 746 if [ -e "$DEB" ]
745 then 747 then
746 cp -Tuv "$DEB" "$SITE_DIR/public_html/$DEB" 748 cp -Tuv "$DEB" "$SITE_DIR/public_html/$DEB"