[Blends-commit] [SCM] website branch, master, updated. ff54fea13652a9772262110b23961fd5772143f7

Andreas Tille tille at debian.org
Mon Jan 11 07:55:39 UTC 2016


The following commit has been merged in the master branch:
commit ff54fea13652a9772262110b23961fd5772143f7
Author: Andreas Tille <tille at debian.org>
Date:   Mon Jan 11 08:55:18 2016 +0100

    Really ignore oldstable

diff --git a/misc/sql/aging_packages_of_blend b/misc/sql/aging_packages_of_blend
index 3436706..e43d265 100755
--- a/misc/sql/aging_packages_of_blend
+++ b/misc/sql/aging_packages_of_blend
@@ -14,11 +14,12 @@ psql $SERVICE >$1.out <<EOT
        FROM blends_dependencies b
        JOIN packages p ON p.package = b.package
        JOIN releases r ON p.release = r.release
-       WHERE blend = '$1' AND b.dependency != 'i' GROUP BY source, r.release, r.sort
+       WHERE blend = '$1' AND b.dependency != 'i' AND
+             (r.sort >= (SELECT sort FROM releases WHERE role = 'stable') OR r.sort = 0) -- 0 for experimental
+       GROUP BY source, r.release, r.sort
      ) s
      JOIN upload_history u ON s.source = u.source AND s.version = u.version
-     WHERE row_number = 1 AND
-           release != 'squeeze' -- only in oldstable, seems to be a removed package
+     WHERE row_number = 1
      ORDER BY date, source
   ;
 EOT
diff --git a/misc/sql/aging_packages_of_team b/misc/sql/aging_packages_of_team
index 3eebafe..db0cc10 100755
--- a/misc/sql/aging_packages_of_team
+++ b/misc/sql/aging_packages_of_team
@@ -13,11 +13,12 @@ psql $SERVICE >$1.out <<EOT
             row_number() OVER (PARTITION BY source ORDER BY r.sort DESC)
        FROM packages p
        JOIN releases r ON p.release = r.release
-       WHERE maintainer_email = '$1' GROUP BY source, r.release, r.sort
+       WHERE maintainer_email = '$1' AND
+             (r.sort >= (SELECT sort FROM releases WHERE role = 'stable') OR r.sort = 0) -- 0 for experimental
+       GROUP BY source, r.release, r.sort
      ) s
      JOIN upload_history u ON s.source = u.source AND s.version = u.version
-     WHERE row_number = 1 AND
-           release != 'squeeze' -- only in oldstable, seems to be a removed package
+     WHERE row_number = 1
      ORDER BY date, source
   ;
 EOT

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list