[Reproducible-commits] [misc] 03/06: Prevent static analysis tools from warning about apt import

Chris Lamb lamby at moszumanska.debian.org
Fri Sep 11 21:13:53 UTC 2015


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

lamby pushed a commit to branch master
in repository misc.

commit 2e17fca2b78e45e7bf3969aa91e0c7296e5e110e
Author: Chris Lamb <lamby at debian.org>
Date:   Fri Sep 11 22:11:00 2015 +0100

    Prevent static analysis tools from warning about apt import
---
 clean-notes | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/clean-notes b/clean-notes
index ae0a2c0..3b1a46a 100755
--- a/clean-notes
+++ b/clean-notes
@@ -8,8 +8,6 @@
 #
 # Depends: python3 python3-apt python3-yaml python3-requests python3-psycopg2
 
-# "apt" is to avoid adding an ugly "apt_pkg.init()" call to
-# fix a "ValueError: _system not initialized" error.
 import apt
 import json
 import yaml
@@ -20,6 +18,10 @@ import requests
 
 from apt_pkg import version_compare
 
+# "apt" is to avoid adding an ugly "apt_pkg.init()" call to fix a "ValueError:
+# _system not initialized" error.
+apt = apt
+
 REPRODUCIBLE_JSON = 'https://reproducible.debian.net/reproducible.json'
 # [{package: xxx, suite: sid, version: 0.0.0, status: reproducible}, {...}]
 

-- 
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