[Collab-qa-commits] r547 - upload-history

filippo at alioth.debian.org filippo at alioth.debian.org
Tue Dec 4 21:39:32 UTC 2007


Author: filippo
Date: 2007-12-04 21:39:31 +0000 (Tue, 04 Dec 2007)
New Revision: 547

Modified:
   upload-history/Notes
   upload-history/changes_to_csv.py
   upload-history/upload_maintainer.sh
Log:
bugfixes/adaptations


Modified: upload-history/Notes
===================================================================
--- upload-history/Notes	2007-12-04 21:22:22 UTC (rev 546)
+++ upload-history/Notes	2007-12-04 21:39:31 UTC (rev 547)
@@ -10,3 +10,12 @@
 .separator " "
 .output file.out
 select MU.package, date(max(MU.date), "unixepoch"), date(max(uploads.date), "unixepoch") from MU left join uploads on mu.package = uploads.package group by MU.package;
+
+
+process past changes
+====================
+
+for dir in $(find /org/ftp.debian.org/queue/done/ -maxdepth 1 -type d); do
+	year=$(basename "$dir")
+	find "$dir" -type f | ./changes_to_csv.py > /org/scratch/filippo/changes_$year.csv
+done

Modified: upload-history/changes_to_csv.py
===================================================================
--- upload-history/changes_to_csv.py	2007-12-04 21:22:22 UTC (rev 546)
+++ upload-history/changes_to_csv.py	2007-12-04 21:39:31 UTC (rev 547)
@@ -13,10 +13,12 @@
 nmu_version_RE = re.compile("-\S+\.\d+$")
 nmu_changelog_RE = re.compile("\s+\*\s+.*(NMU|non[- ]maintainer)", re.IGNORECASE + re.MULTILINE)
 
+donename = sys.argv[0] + ".done"
+
 logfile = open(sys.argv[0] + ".log", "a")
-donefile = open(sys.argv[0] + ".done", "a")
+donefile = open(donename, "a")
 
-a = open(donefile, "r")
+a = open(donename, "r")
 alreadydone = [ x.strip() for x in a.readlines()]
 a.close()
 

Modified: upload-history/upload_maintainer.sh
===================================================================
--- upload-history/upload_maintainer.sh	2007-12-04 21:22:22 UTC (rev 546)
+++ upload-history/upload_maintainer.sh	2007-12-04 21:39:31 UTC (rev 547)
@@ -9,7 +9,7 @@
 
 case "$me" in
 	upload_maintainer.sh)
-		q="SELECT package, version, date(date, \"unixepoch\"), maintainer FROM uploads where maintainer like '%$1%' or changedby like '%$1%' GROUP BY package ORDER BY date ;"
+		q="SELECT package, version, date(date, \"unixepoch\"), maintainer, changedby FROM uploads where maintainer like '%$1%' or changedby like '%$1%' GROUP BY package ORDER BY date ;"
 	;;
 	upload_package.sh)
 		q="SELECT package, version, date(date, \"unixepoch\") FROM uploads WHERE package LIKE '%$1%' ORDER BY date ;"




More information about the Collab-qa-commits mailing list