[23100] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r22763 - trunk/debathena/third/common

daemon@ATHENA.MIT.EDU (ghudson@MIT.EDU)
Thu Feb 21 15:22:13 2008

Date: Thu, 21 Feb 2008 15:21:41 -0500 (EST)
From: ghudson@MIT.EDU
Message-Id: <200802212021.PAA29581@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: ghudson
Date: 2008-02-21 15:21:40 -0500 (Thu, 21 Feb 2008)
New Revision: 22763

Modified:
   trunk/debathena/third/common/debathenificator.sh
Log:
* debathena/third/common/debathenificator.sh: Allow apt repository
  location to be overridden by $DEBATHENA_APT.


Modified: trunk/debathena/third/common/debathenificator.sh
===================================================================
--- trunk/debathena/third/common/debathenificator.sh	2008-02-19 20:59:35 UTC (rev 22762)
+++ trunk/debathena/third/common/debathenificator.sh	2008-02-21 20:21:40 UTC (rev 22763)
@@ -3,6 +3,8 @@
 
 set -e
 
+: ${DEBATHENA_APT=/mit/debathena/apt}
+
 munge_sections () {
     perl -0pe 's/^Section: /Section: debathena-system\//gm or die' -i debian/control
 }
@@ -82,7 +84,7 @@
 }
 
 cmd_upload () {
-    REPREPRO="v reprepro -Vb /mit/debathena/apt"
+    REPREPRO="v reprepro -Vb $DEBATHENA_APT"
     REPREPROI="$REPREPRO --ignore=wrongdistribution"
     
     case "$dist" in
@@ -132,7 +134,7 @@
     )
 daversion=$version$daversionappend
 
-if zcat "/mit/debathena/apt/dists/$dist/debathena-system/binary-$arch/Packages.gz" | \
+if zcat "$DEBATHENA_APT/dists/$dist/debathena-system/binary-$arch/Packages.gz" | \
     dpkg-awk -f - "Source:^$name\$" "Version:^$daversion~" -- Architecture | \
     if [ "$a" = "-A" ]; then cat; else fgrep -vx 'Architecture: all'; fi | \
     grep -q .; then


home help back first fref pref prev next nref lref last post