summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-08-09 09:12:29 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-08-09 09:12:29 +0200
commit3a0e654a8a5935c148bc95a9f9cb5d7786aae825 (patch)
tree25bbf279be3770a3ed57218a35b9eca8a2511544 /apt
parentcd5e6765f2403db4f90b08a3f42841565710f65f (diff)
downloadpython-apt-3a0e654a8a5935c148bc95a9f9cb5d7786aae825.tar.gz
apt/package.py: make print statements py3 compatbile
Diffstat (limited to 'apt')
-rw-r--r--apt/package.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/apt/package.py b/apt/package.py
index 9223ed22..dbc5b23e 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -545,8 +545,8 @@ class Version(object):
base = os.path.basename(self._records.filename)
destfile = os.path.join(destdir, base)
if _file_is_same(destfile, self.size, self._records.md5_hash):
- print 'Ignoring already existing file:', destfile
- return
+ print('Ignoring already existing file: %s' % destfile)
+ return os.path.abspath(destfile)
acq = apt_pkg.Acquire(progress or apt.progress.text.AcquireProgress())
acqfile = apt_pkg.AcquireFile(acq, self.uri, self._records.md5_hash,
self.size, base, destfile=destfile)
@@ -555,7 +555,7 @@ class Version(object):
if acqfile.status != acqfile.STAT_DONE:
raise FetchError("The item %r could not be fetched: %s" %
(acqfile.destfile, acqfile.error_text))
- print self._records.filename
+
return os.path.abspath(destfile)
def fetch_source(self, destdir="", progress=None, unpack=True):
@@ -594,7 +594,7 @@ class Version(object):
if type_ == 'dsc':
dsc = destfile
if _file_is_same(destfile, size, md5):
- print 'Ignoring already existing file:', destfile
+ print('Ignoring already existing file: %s' % destfile)
continue
files.append(apt_pkg.AcquireFile(acq, src.index.archive_uri(path),
md5, size, base, destfile=destfile))