[23417] in Source-Commits
/svn/athena r23071 - trunk/debathena/third/common
daemon@ATHENA.MIT.EDU (ghudson@MIT.EDU)
Fri Jul 11 16:01:14 2008
Date: Fri, 11 Jul 2008 16:00:40 -0400 (EDT)
From: ghudson@MIT.EDU
Message-Id: <200807112000.QAA17577@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: ghudson
Date: 2008-07-11 16:00:40 -0400 (Fri, 11 Jul 2008)
New Revision: 23071
Modified:
trunk/debathena/third/common/debathenificator.sh
Log:
In debathenificator:
* Fix a typo in the default section name in the previous commit.
* Filter out debathena versions of source packages when finding the
latest version; the chroots can't see debathena-system but not all
packages are going there any more.
Modified: trunk/debathena/third/common/debathenificator.sh
===================================================================
--- trunk/debathena/third/common/debathenificator.sh 2008-07-11 18:25:24 UTC (rev 23070)
+++ trunk/debathena/third/common/debathenificator.sh 2008-07-11 20:00:40 UTC (rev 23071)
@@ -28,7 +28,7 @@
schr apt-get -qq -y update
munge_sections () {
- section=${1:-debathena-section}
+ section=${1:-debathena-system}
perl -0pe "s/^Section: /Section: $section\\//gm or die" -i debian/control
}
@@ -121,7 +121,8 @@
sed -n 's/^Version: \(.*\)$/\1/ p' | (
version='~~~'
while read -r newversion; do
- if dpkg --compare-versions "$newversion" '>' "$version"; then
+ if [ $(expr "$version" : '.*debathena') = 0 ] && \
+ dpkg --compare-versions "$newversion" '>' "$version"; then
version=$newversion
fi
done