backend/satellite_tools/satComputePkgHeaders.py | 14 +++++++-------
backend/satellite_tools/syncLib.py | 2 --
backend/spacewalk-backend.spec | 5 ++++-
rel-eng/packages/spacewalk-backend | 2 +-
4 files changed, 12 insertions(+), 11 deletions(-)
New commits:
commit 59052643394a851234728409ff523a0ac5c7c76d
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Mon Oct 21 10:59:56 2013 +0200
Automatic commit of package [spacewalk-backend] release [2.1.31-1].
diff --git a/backend/spacewalk-backend.spec b/backend/spacewalk-backend.spec
index cb46590..296a62f 100644
--- a/backend/spacewalk-backend.spec
+++ b/backend/spacewalk-backend.spec
@@ -11,7 +11,7 @@ Name: spacewalk-backend
Summary: Common programs needed to be installed on the Spacewalk servers/proxies
Group: Applications/Internet
License: GPLv2
-Version: 2.1.30
+Version: 2.1.31
Release: 1%{?dist}
URL:
https://fedorahosted.org/spacewalk
Source0:
https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz
@@ -628,6 +628,9 @@ rm -f %{rhnconf}/rhnSecret.py*
%{pythonrhnroot}/satellite_tools/exporter/xmlWriter.py*
%changelog
+* Mon Oct 21 2013 Michael Mraka <michael.mraka(a)redhat.com> 2.1.31-1
+- fixed pylint warnings and errors
+
* Mon Oct 21 2013 Michael Mraka <michael.mraka(a)redhat.com> 2.1.30-1
- python oracle tests: better integration with nosetest
- python pgsql driver: behave like the oracle one
diff --git a/rel-eng/packages/spacewalk-backend b/rel-eng/packages/spacewalk-backend
index 18910d5..2853561 100644
--- a/rel-eng/packages/spacewalk-backend
+++ b/rel-eng/packages/spacewalk-backend
@@ -1 +1 @@
-2.1.30-1 backend/
+2.1.31-1 backend/
commit 28860a3a9ba01df0d6d6b57039cbc762c8f237c1
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Fri Aug 31 12:01:18 2012 +0200
fixed pylint: Unused variable 'args'
diff --git a/backend/satellite_tools/satComputePkgHeaders.py
b/backend/satellite_tools/satComputePkgHeaders.py
index 4f2c02e..7699cae 100644
--- a/backend/satellite_tools/satComputePkgHeaders.py
+++ b/backend/satellite_tools/satComputePkgHeaders.py
@@ -71,7 +71,7 @@ class Runner:
def main(self):
parser = OptionParser(option_list=options_table)
- (self.options, args) = parser.parse_args()
+ (self.options, _args) = parser.parse_args()
rhnSQL.initDB()
commit 71fffa59207e64edc963057305b5e9904895bc54
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Fri Aug 31 12:00:41 2012 +0200
fixed pylint: Operator not preceded by a space
diff --git a/backend/satellite_tools/satComputePkgHeaders.py
b/backend/satellite_tools/satComputePkgHeaders.py
index e238e6c..4f2c02e 100644
--- a/backend/satellite_tools/satComputePkgHeaders.py
+++ b/backend/satellite_tools/satComputePkgHeaders.py
@@ -39,7 +39,7 @@ table = None
config_tree = None
server_root = None
mpm_query = None
-exists_config_define=None
+exists_config_define = None
OK = 1
commit 41f0bd3982c4516e38862edc8ae0ad1b18acdfe8
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Fri Aug 31 12:00:03 2012 +0200
fixed pylint: unnecessary semicolon
diff --git a/backend/satellite_tools/satComputePkgHeaders.py
b/backend/satellite_tools/satComputePkgHeaders.py
index 5765a34..e238e6c 100644
--- a/backend/satellite_tools/satComputePkgHeaders.py
+++ b/backend/satellite_tools/satComputePkgHeaders.py
@@ -193,7 +193,7 @@ class Runner:
continue
try:
- (header_start, header_end) = rhn_rpm.get_header_byte_range(p_file);
+ (header_start, header_end) = rhn_rpm.get_header_byte_range(p_file)
except Exception, e:
print "Error reading header size from file %s: %s" % (path, e)
commit 3760d33ebc6fe53de09371f210c40319d66005df
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Fri Aug 31 11:55:52 2012 +0200
fixed pylint: Using global for 'EMAIL_LOG' but no assignment is done
diff --git a/backend/satellite_tools/syncLib.py b/backend/satellite_tools/syncLib.py
index 05f9753..9472f59 100644
--- a/backend/satellite_tools/syncLib.py
+++ b/backend/satellite_tools/syncLib.py
@@ -35,7 +35,6 @@ def initEMAIL_LOG(reinit=0):
EMAIL_LOG = StringIO()
def dumpEMAIL_LOG():
- global EMAIL_LOG
if EMAIL_LOG is not None:
return EMAIL_LOG.getvalue()
return None
@@ -115,7 +114,6 @@ def log2email(level, msg, cleanYN=0, notimeYN=0):
""" Log to the email log.
Arguments: see def _prepLogMsg(...) above.
"""
- global EMAIL_LOG
if EMAIL_LOG is not None:
log2stream(level, msg, cleanYN, notimeYN, EMAIL_LOG)
commit e97a447d436437117578a1a1a6014e23552214b8
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Mon Oct 21 10:54:09 2013 +0200
fixed pylint: Unused argument 'args'
diff --git a/backend/satellite_tools/satComputePkgHeaders.py
b/backend/satellite_tools/satComputePkgHeaders.py
index 7e34a34..5765a34 100644
--- a/backend/satellite_tools/satComputePkgHeaders.py
+++ b/backend/satellite_tools/satComputePkgHeaders.py
@@ -22,16 +22,16 @@ from optparse import OptionParser, Option
SERVER_RETURN = 0
-def log_error(*args):
+def log_error(*_args):
pass
-def make_table(*args):
+def make_table(*_args):
pass
-def parse_qs(*args):
+def parse_qs(*_args):
pass
-def parse_qsl(*args):
+def parse_qsl(*_args):
pass
status = None