]> git.decadent.org.uk Git - dak.git/commitdiff
Merge our own changes.
authorArchive Administrator <ftpmaster@debian.org>
Sun, 11 Jun 2006 05:38:51 +0000 (22:38 -0700)
committerArchive Administrator <ftpmaster@debian.org>
Sun, 11 Jun 2006 05:38:51 +0000 (22:38 -0700)
12 files changed:
ChangeLog
config/debian/cron.daily
config/debian/cron.hourly
config/debian/cron.monthly
config/debian/cron.unchecked
config/debian/cron.weekly
config/debian/dak.conf
config/debian/vars
dak/ls.py
daklib/queue.py
daklib/utils.py
docs/README.quotes

index d1ea513d34e34c22d210fb5553dfc2e54ae67921..3d7e01063709d537c49e5afbb74f5f154a167b28 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,37 @@
+2006-06-11  James Troup  <james@nocrew.org>
+
+       * config/debian/cron.unchecked: set -u to error out on undefined
+       variables.  Preset LOCKDAILY to "" accordingly.
+       * config/debian/cron.hourly: likewise.
+       * config/debian/cron.monthly: likewise.
+       * config/debian/cron.weekly: likewise.
+
+       * config/debian/vars (configdir): add new variable pointing to
+       this directory.
+
+       * config/debian/cron.daily: use $configdir inplace of $masterdir
+       when that's what we mean, and don't cd into $masterdir just to run
+       dak scripts as we don't need to do that anymore.
+       * config/debian/cron.hourly: likewise.
+       * config/debian/cron.unchecked: likewise.
+       * config/debian/cron.weekly: likewise.
+
+       * config/debian/dak.conf
+       (Import-Users-From-Passwd::KnownPostgres): temporarily add 'katie'
+       user back to list of known users as it's non-trivial to entirely
+       change the owner of a database with postgresql 7.4.
+
+       * dak/daklib/queue.py (Upload.source_exists): use string object
+       methods rather than string module.
+       (Upload.get_anyversion): likewise.
+
+       * dak/daklib/utils.py (validate_changes_file_arg): update filename
+       slicing to cope with new .dak filenames.
+
+       * dak/ls.py (main): add back 'heidi' as a valid argument for
+       -f/--format as people are using it in scripts and breaking that
+       without warning seems rude.
+
 2006-05-21  James Troup  <james@nocrew.org>
 
        * dak/rm.py (main): use string .isdigit() rather than
index 8aae0543a0435115eff493c4f095b2d39b48c4a3..5d85823b471a1d3bc783b1bcd501731f22915f69 100755 (executable)
@@ -56,7 +56,6 @@ chmod 664 REPORT
 
 TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
 
-cd $masterdir
 dak check-overrides
 rm -f $LOCKAC
 
@@ -64,7 +63,6 @@ symlinks -d -r $ftpdir
 
 TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
 
-cd $masterdir
 dak make-suite-file-list
 
 TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
@@ -90,7 +88,7 @@ for i in main contrib non-free main.debian-installer; do cat override.sid.$i >>
 TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
 
 # Generate Packages and Sources files
-cd $masterdir
+cd $configdir
 apt-ftparchive generate apt.conf
 # Generate *.diff/ incremental updates
 dak generate-index-diffs
@@ -168,7 +166,6 @@ echo Daily cron scripts successful.
 TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
 
 # Stats pr0n
-cd $masterdir
 update-ftpstats $base/log/* > $base/misc/ftpstats.data
 R --slave --vanilla < $base/misc/ftpstats.R
 
index 5a756fbd55f6d279bed47ec0f260c85c132cbb11..59104c3a202aca13109b8d8a189f40bc2520dc5e 100644 (file)
@@ -3,9 +3,9 @@
 # Executed hourly via cron, out of troup's crontab.
 
 set -e
+set -u
 export SCRIPTVARS=/org/ftp.debian.org/dak/config/debian/vars
 . $SCRIPTVARS
 
-cd $masterdir
 dak import-users-from-passwd
 dak queue-report -n > $webdir/new.html
index ac4bf7dd5517b7c30f4a02ae5f993c35f10473d0..9d7a68ba9abcdd227b23d20c23db36717391d151 100755 (executable)
@@ -3,6 +3,7 @@
 # Run at the beginning of the month via cron, out of dak's crontab.
 
 set -e
+set -u
 export SCRIPTVARS=/org/ftp.debian.org/dak/config/debian/vars
 . $SCRIPTVARS
 
index 124f7f6eb42f90ee23eb19aa140d19b95d464d9e..1282b60e8700143fd7de77a6ab7ffaf9c07fea3e 100644 (file)
@@ -1,9 +1,11 @@
 #! /bin/sh
 
 set -e
+set -u
 export SCRIPTVARS=/org/ftp.debian.org/dak/config/debian/vars
 . $SCRIPTVARS
 
+LOCKDAILY=""
 LOCKFILE="$lockdir/unchecked.lock"
 NOTICE="$lockdir/daily.lock"
 
@@ -40,9 +42,9 @@ if lockfile -r3 $LOCKFILE; then
                                        cat override.sid.$i.src >> override.sid.all3.src
                                fi
                        done
-                       cd $masterdir
+                       cd $configdir
                        apt-ftparchive -qq generate apt.conf.buildd
-                       . $masterdir/cron.buildd
+                       . $configdir/cron.buildd
                fi
        else
                echo "$timestamp": Nothing to do >> $report
index fb5d207edda439e85d1027f7dac10246e387e2c1..2c159380bc0014a82261d57a4712d38323cd5448 100755 (executable)
@@ -3,6 +3,7 @@
 # Run once a week via cron, out of dak's crontab.
 
 set -e
+set -u
 export SCRIPTVARS=/org/ftp.debian.org/dak/config/debian/vars
 . $SCRIPTVARS
 
@@ -16,7 +17,7 @@ fi
 
 # Clean up apt-ftparchive's databases
 
-cd $masterdir
+cd $configdir
 apt-ftparchive -q clean apt.conf
 apt-ftparchive -q clean apt.conf.buildd
 
index f0f4893131716262c23dc5f5d9890f792aaae61e..741a4a1144c2e48e19916081562556a9312a3384 100644 (file)
@@ -66,7 +66,7 @@ Import-Users-From-Passwd
 {
   ValidGID "800";
   // Comma separated list of users who are in Postgres but not the passwd file
-  KnownPostgres "postgres,dak";
+  KnownPostgres "postgres,dak,katie";
 };
 
 Clean-Queues
index c2bf377fde6925b44df0cc2770ba23ce26c520b0..974ca12ac4c6f5f34627020efdfed01af98f8542 100644 (file)
@@ -8,6 +8,7 @@ archs="alpha amd64 arm hppa hurd-i386 i386 ia64 m68k mips mipsel powerpc s390 sp
 
 scriptdir=$base/scripts
 masterdir=$base/dak/
+configdir=$base/dak/config/debian/
 dbdir=$base/database/
 lockdir=$base/lock/
 overridedir=$scriptdir/override
index a1f8c8ec2dc1b52f15cb7b0d6f46011484446218..21b12f661baadf90678422df315ef5f07e09e560 100755 (executable)
--- a/dak/ls.py
+++ b/dak/ls.py
@@ -183,7 +183,7 @@ SELECT s.source, s.version, 'source', su.suite_name, c.name, m.name
                         sys.stdout.write("%10s | %10s | %13s | " % (pkg, version, suite))
                         sys.stdout.write(", ".join(arches))
                         sys.stdout.write('\n')
-                    elif Options["Format"] == "control-suite":
+                    elif Options["Format"] in [ "control-suite", "heidi" ]:
                         for arch in arches:
                             sys.stdout.write("%s %s %s\n" % (pkg, version, arch))
             if Options["GreaterOrEqual"]:
index 13409eb4d96effc89e750ec17c1d5366c8b9711d..0a03d1fe26a35c7e5a49e07bed326604d53b8274 100644 (file)
@@ -695,7 +695,7 @@ distribution."""
                        if x[1] in s and x[0] not in s:
                                s.append(x[0])
 
-               que = "SELECT s.version FROM source s JOIN src_associations sa ON (s.id = sa.source) JOIN suite su ON (sa.suite = su.id) WHERE s.source = '%s' AND (%s)" % (package, string.join(["su.suite_name = '%s'" % a for a in s], " OR "))
+               que = "SELECT s.version FROM source s JOIN src_associations sa ON (s.id = sa.source) JOIN suite su ON (sa.suite = su.id) WHERE s.source = '%s' AND (%s)" % (package, " OR ".join(["su.suite_name = '%s'" % a for a in s]))
             q = self.projectB.query(que)
 
             # Reduce the query results to a list of version numbers
@@ -774,7 +774,7 @@ distribution."""
         anyversion=None
         anysuite = [suite] + self.Cnf.ValueList("Suite::%s::VersionChecks::Enhances" % (suite))
         for (v, s) in query_result:
-            if s in [ string.lower(x) for x in anysuite ]:
+            if s in [ x.lower() for x in anysuite ]:
                 if not anyversion or apt_pkg.VersionCompare(anyversion, v) <= 0:
                     anyversion=v
         return anyversion
index 83b507a89062504b43840c51d257ea908757d82a..527f76b0b585cb1b42754560de9d2f1923ba2185 100644 (file)
@@ -608,7 +608,7 @@ argument:
 
     orig_filename = filename
     if filename.endswith(".dak"):
-        filename = filename[:-6]+".changes"
+        filename = filename[:-4]+".changes"
 
     if not filename.endswith(".changes"):
         error = "invalid file type; not a changes file"
index f737f3b78444bd8383b69b404a7a57c0d00f8512..3568ae7ad519cbf90ea165cc9fd4705568fa0de0 100644 (file)
@@ -340,3 +340,7 @@ Canadians: This is a lighthouse. Your call.
 <bdale> Well I didn't let him speak....
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+<helix> elmo: I can't believe people pay you to fix computers
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%