summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-01 21:13:02 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-05 20:01:06 -0600
commit8421e0e1d71750c9429f641a06b30059a304a8da (patch)
tree34f7dec94b623b8ee42262d713fb9c52d00a8a9c /src
parent4c1672b437f84a46a03a59fafea459a96c4638a4 (diff)
librerelease: add a HOOKPOSTRELEASE
Diffstat (limited to 'src')
-rwxr-xr-xsrc/abslibre-tools/librerelease4
-rw-r--r--src/libretools.conf3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease
index f3f6259..aff13fa 100755
--- a/src/abslibre-tools/librerelease
+++ b/src/abslibre-tools/librerelease
@@ -126,7 +126,7 @@ function main {
load_files libretools
check_vars libretools WORKDIR PARABOLAHOST LIBREDESTDIR SIGID SIGEXT || return 1
# The following variables are actually optional
- #check_vars libretools HOOKPRERELEASE || return 1
+ #check_vars libretools HOOKPRERELEASE HOOKPOSTRELEASE || return 1
"$mode"
}
@@ -168,6 +168,8 @@ function release_packages {
msg "Running db-update on repos"
ssh ${PARABOLAHOST} dbscripts/db-update
+ [[ ! -z ${HOOKPOSTRELEASE} ]] && bash -c "${HOOKPOSTRELEASE}"
+
return 0
}
diff --git a/src/libretools.conf b/src/libretools.conf
index 947ee58..5c6fa67 100644
--- a/src/libretools.conf
+++ b/src/libretools.conf
@@ -50,7 +50,8 @@ ABSLIBREGIT=http://projects.parabolagnulinux.org/abslibre.git
# Run a command before releasing a package (ie. SSH connection, SSH tunnel, etc.)
# This is called by librerelease.
-HOOKPRERELEASE="ssh -fN parabola"
+HOOKPRERELEASE="ssh -fN ${PARABOLAHOST}"
+HOOKPOSTRELEASE="sudo librechroot clean-repo"
################################################################################
# fullpkg/treepkg #