[Reproducible-commits] [misc] 01/04: clean-notes: import only version_compare from apt_pkg

Mattia Rizzolo mattia at mapreri.org
Thu Jun 4 02:21:24 UTC 2015


This is an automated email from the git hooks/post-receive script.

mapreri-guest pushed a commit to branch master
in repository misc.

commit 53bea2aea21347f1a91bcce5547148e3bace7c31
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Thu Jun 4 02:54:56 2015 +0200

    clean-notes: import only version_compare from apt_pkg
---
 clean-notes | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/clean-notes b/clean-notes
index 820420c..e7d6aa3 100755
--- a/clean-notes
+++ b/clean-notes
@@ -14,11 +14,11 @@ import apt
 import sys
 import json
 import yaml
-import apt_pkg
 import argparse
 import psycopg2
 import requests
 
+from apt_pkg import version_compare
 
 reproducible_json = 'https://reproducible.debian.net/reproducible.json'
 # [{package: xxx, suite: sid, version: 0.0.0, status: reproducible}, {...}]
@@ -240,13 +240,13 @@ def find_old_notes(testedpkgs, notes):
             print("The package " + pkg + " has a note for the version " +
                   item['version'] + " but that version is reproducible")
         if item['status'] == 'reproducible' and notes[pkg].get('version') and \
-            apt_pkg.version_compare(str(item['version']),
+            version_compare(str(item['version']),
                                     str(notes[pkg]['version'])) > 0:
             print("The package " + pkg +
                   " is now reproducible but still listed in the notes")
             toremove.append(pkg)
         if notes[pkg].get('version') and \
-            apt_pkg.version_compare(str(item['version']),
+            version_compare(str(item['version']),
                                     str(notes[pkg]['version'])) > 0:
             if 'new-tested-version' not in args.disable:
                 print("The package " + pkg + " has a new tested version")

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git



More information about the Reproducible-commits mailing list