[Pkg-ocaml-maint-commits] r5630 - /trunk/tools/gen-binNMU-request/gen-binNMU-request.py

glondu-guest at users.alioth.debian.org glondu-guest at users.alioth.debian.org
Tue May 13 12:20:22 UTC 2008


Author: glondu-guest
Date: Tue May 13 12:20:21 2008
New Revision: 5630

URL: http://svn.debian.org/wsvn/?sc=1&rev=5630
Log:
 * Remove from request only packages in testing
 * sre -> re to avoid deprecation warning

Modified:
    trunk/tools/gen-binNMU-request/gen-binNMU-request.py

Modified: trunk/tools/gen-binNMU-request/gen-binNMU-request.py
URL: http://svn.debian.org/wsvn/trunk/tools/gen-binNMU-request/gen-binNMU-request.py?rev=5630&op=diff
==============================================================================
--- trunk/tools/gen-binNMU-request/gen-binNMU-request.py (original)
+++ trunk/tools/gen-binNMU-request/gen-binNMU-request.py Tue May 13 12:20:21 2008
@@ -1,24 +1,26 @@
 #! /usr/bin/env python
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2008, Stephane Glondu <steph at glondu.net>
+# Copyright © 2008, Stéphane Glondu <steph at glondu.net>
 #
-# 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 the Free Software
-# Foundation, either version 3 of the License, or (at your option) any later
-# version.
+# 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
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
 
-import sys, os, sre
+# Depends: python-debian, graphviz
+
+import sys, os, re
 from commands import getoutput, getstatusoutput
 from debian_bundle.debian_support import version_compare
 from xml.dom.minidom import parseString
 from urllib import urlopen
 
-node_re = sre.compile('^node[ "]*([^ "]+)[ "]*[0-9.]+ *([0-9.]+).*$')
-edge_re = sre.compile('^edge[ "]*([^ "]+)[ "]*([^ "]+).*$')
-rmadison_re = sre.compile("[ |,\n]+")
-binNMU_re = sre.compile("\+b([0-9]+)$")
-ocamlABI_re = sre.compile(r">ocaml-([a-z-]*-|)\d+\.\d+\.\d+</a>")
+node_re = re.compile('^node[ "]*([^ "]+)[ "]*[0-9.]+ *([0-9.]+).*$')
+edge_re = re.compile('^edge[ "]*([^ "]+)[ "]*([^ "]+).*$')
+rmadison_re = re.compile("[ |,\n]+")
+binNMU_re = re.compile("\+b([0-9]+)$")
+ocamlABI_re = re.compile(r">ocaml-([a-z-]*-|)\d+\.\d+\.\d+</a>")
 
 excluded_archs = ("source", "all", "hurd-i386", "kfreebsd-i386", "kfreebsd-amd64")
 reference_arch = "i386"
@@ -84,7 +86,7 @@
     for line in lines[1:]:
         cols = line.getElementsByTagName("td")
         pkg = cols[0].getElementsByTagName("span")[0].firstChild.nodeValue
-        if cols[-1].attributes["class"].value != "none":
+        if cols[-1].attributes["class"].value == "inTesting":
             up_to_date[pkg] = True
     return last_version, up_to_date
 




More information about the Pkg-ocaml-maint-commits mailing list