[Debian-l10n-commits] r1170 - in /ddtp-dinstall/trunk/checks: ddtp_dinstall.sh ddtp_i18n_check.sh
faw at users.alioth.debian.org
faw at users.alioth.debian.org
Mon Aug 11 05:48:58 UTC 2008
Author: faw
Date: Mon Aug 11 05:48:58 2008
New Revision: 1170
URL: http://svn.debian.org/wsvn/?sc=1&rev=1170
Log:
* checks/ddtp_i18n_check.sh: Added an exit trap to clean *.pkgs files.
* checks/ddtp_dinstall.sh: Clean the package list directory.
Modified:
ddtp-dinstall/trunk/checks/ddtp_dinstall.sh
ddtp-dinstall/trunk/checks/ddtp_i18n_check.sh
Modified: ddtp-dinstall/trunk/checks/ddtp_dinstall.sh
URL: http://svn.debian.org/wsvn/ddtp-dinstall/trunk/checks/ddtp_dinstall.sh?rev=1170&op=diff
==============================================================================
--- ddtp-dinstall/trunk/checks/ddtp_dinstall.sh (original)
+++ ddtp-dinstall/trunk/checks/ddtp_dinstall.sh Mon Aug 11 05:48:58 2008
@@ -22,6 +22,7 @@
DDTP_DINSTALL_DIR=/srv/ddtp-dinstall
CHECK_DIR="$DDTP_DINSTALL_DIR/tf.check"
+CHECK_PACKAGE_LISTS="$DDTP_DINSTALL_DIR/pkg-lists.check"
OLD_TARGET=$(readlink "$DDTP_DINSTALL_DIR/to-dak")
TMP_LINK="$DDTP_DINSTALL_DIR/to-dak-tmp"
DAK_LINK="$DDTP_DINSTALL_DIR/to-dak"
@@ -37,10 +38,11 @@
cd "$DDTP_DINSTALL_DIR"
# Clean the check directory to prepare a new one
-rm -rf "$CHECK_DIR"
+rm -rf "$CHECK_DIR" "$CHECK_PACKAGE_LISTS"
cp -a "$TRANSLATION_FILES" "$CHECK_DIR"
+cp -a "$PACKAGE_LISTS" "$CHECK_PACKAGE_LISTS"
$DDTP_I18N_CHECK "$CHECK_DIR" "$PACKAGE_LISTS"
-rm -rf "$CHECK_DIR"
+rm -rf "$CHECK_DIR" "$CHECK_PACKAGE_LISTS"
# Copy the new Translation files and create the new symlink
cp -a "$TRANSLATION_FILES" "$DDTP_DINSTALL_DIR/tf.$TIMESTAMP"
Modified: ddtp-dinstall/trunk/checks/ddtp_i18n_check.sh
URL: http://svn.debian.org/wsvn/ddtp-dinstall/trunk/checks/ddtp_i18n_check.sh?rev=1170&op=diff
==============================================================================
--- ddtp-dinstall/trunk/checks/ddtp_i18n_check.sh (original)
+++ ddtp-dinstall/trunk/checks/ddtp_i18n_check.sh Mon Aug 11 05:48:58 2008
@@ -27,6 +27,11 @@
# Original SHA256SUMS, generated by i18n.debian.net
SHA256SUMS="SHA256SUMS"
+
+trap_exit () {
+ rm -f "$PACKAGES_LISTS_DIR"/*.pkgs
+}
+trap trap_exit EXIT
usage () {
echo "Usage: $0 <dists_parent_dir> [<packages_lists_directory>]" >&2
More information about the Debian-l10n-commits
mailing list