summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Packages/Apt.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Plugins/Packages/Apt.py')
-rw-r--r--src/lib/Server/Plugins/Packages/Apt.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/Server/Plugins/Packages/Apt.py b/src/lib/Server/Plugins/Packages/Apt.py
index ed954af3b..f76bf7fa1 100644
--- a/src/lib/Server/Plugins/Packages/Apt.py
+++ b/src/lib/Server/Plugins/Packages/Apt.py
@@ -1,12 +1,9 @@
import re
import gzip
-import logging
from Bcfg2.Server.Plugins.Packages.Collection import Collection
from Bcfg2.Server.Plugins.Packages.Source import Source
from Bcfg2.Bcfg2Py3k import cPickle, file
-logger = logging.getLogger("Packages")
-
class AptCollection(Collection):
def get_group(self, group):
self.logger.warning("Packages: Package groups are not supported by APT")
@@ -72,7 +69,7 @@ class AptSource(Source):
try:
reader = gzip.GzipFile(fname)
except:
- logger.error("Packages: Failed to read file %s" % fname)
+ self.logger.error("Packages: Failed to read file %s" % fname)
raise
for line in reader.readlines():
words = str(line.strip()).split(':', 1)