diff options
Diffstat (limited to 'src/lib/Server/Plugins/Packages')
-rw-r--r-- | src/lib/Server/Plugins/Packages/Apt.py | 2 | ||||
-rw-r--r-- | src/lib/Server/Plugins/Packages/Pac.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/Server/Plugins/Packages/Apt.py b/src/lib/Server/Plugins/Packages/Apt.py index 5c80200a4..ad3ebcabd 100644 --- a/src/lib/Server/Plugins/Packages/Apt.py +++ b/src/lib/Server/Plugins/Packages/Apt.py @@ -72,7 +72,7 @@ class AptSource(Source): try: reader = gzip.GzipFile(fname) except: - print("Failed to read file %s" % fname) + logger.error("Failed to read file %s" % fname) raise for line in reader.readlines(): words = str(line.strip()).split(':', 1) diff --git a/src/lib/Server/Plugins/Packages/Pac.py b/src/lib/Server/Plugins/Packages/Pac.py index 8b75c1e1d..881df0ced 100644 --- a/src/lib/Server/Plugins/Packages/Pac.py +++ b/src/lib/Server/Plugins/Packages/Pac.py @@ -71,17 +71,17 @@ class PacSource(Source): bdeps[barch] = dict() bprov[barch] = dict() try: - print("try to read : " + fname) + logger.debug("try to read : " + fname) tar = tarfile.open(fname, "r") reader = gzip.GzipFile(fname) except: - print("Failed to read file %s" % fname) + logger.error("Failed to read file %s" % fname) raise for tarinfo in tar: if tarinfo.isdir(): self.pkgnames.add(tarinfo.name.rsplit("-", 2)[0]) - print("added : " + tarinfo.name.rsplit("-", 2)[0]) + logger.debug("added : " + tarinfo.name.rsplit("-", 2)[0]) tar.close() self.deps['global'] = dict() |