#!/usr/bin/env python
# Various statistical pr0nography fun and games
-# Copyright (C) 2000, 2001, 2002 James Troup <james@nocrew.org>
-# $Id: saffron,v 1.1 2003-01-02 18:06:19 troup Exp $
+# Copyright (C) 2000, 2001, 2002, 2003 James Troup <james@nocrew.org>
+# $Id: saffron,v 1.2 2003-02-07 14:53:47 troup Exp $
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
################################################################################
+# <aj> can we change the standards instead?
+# <neuro> standards?
+# <aj> whatever we're not conforming to
+# <aj> if there's no written standard, why don't we declare linux as
+# the defacto standard
+# <aj> go us!
+
+# [aj's attempt to avoid ABI changes for released architecture(s)]
+
+################################################################################
+
import pg, sys;
import utils;
import apt_pkg;
WHERE a.id=b.architecture AND f.id=b.file
GROUP BY a.arch_string""");
print q;
+ q = projectB.query("SELECT sum(size) FROM files WHERE filename ~ '.(diff.gz|tar.gz|dsc)$'");
+ print q;
################################################################################
output_suite = [];
for word in suite.split("-"):
output_suite.append(word[0]);
- return output_suite.join("-");
+ return "-".join(output_suite);
# Obvious query with GROUP BY and mapped names -> 50 seconds
# GROUP BY but ids instead of suite/architecture names -> 28 seconds