Skip to content

Commit 36e55b2

Browse files
committed
Start requiring 'download-size' for get_details() in spawned
backends Follow up to 736585f Note this applies to get_details_local() as well
1 parent ab9e2e9 commit 36e55b2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/python/packagekit/backend.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def data(self, data):
232232
sys.stdout.write(_to_utf8("data\t%s\n" % data))
233233
sys.stdout.flush()
234234

235-
def details(self, package_id, summary, package_license, group, desc, url, bytes):
235+
def details(self, package_id, summary, package_license, group, desc, url, bytes, download_bytes):
236236
'''
237237
Send 'details' signal
238238
@param package_id: The package ID name, e.g. openoffice-clipart;2.6.22;ppc64;fedora
@@ -242,8 +242,9 @@ def details(self, package_id, summary, package_license, group, desc, url, bytes)
242242
@param desc: The multi line package description
243243
@param url: The upstream project homepage
244244
@param bytes: The size of the package, in bytes
245+
@param download_bytes: The download size of the package, in bytes
245246
'''
246-
sys.stdout.write(_to_utf8("details\t%s\t%s\t%s\t%s\t%s\t%s\t%ld\n" % (package_id, summary, package_license, group, desc, url, bytes)))
247+
sys.stdout.write(_to_utf8("details\t%s\t%s\t%s\t%s\t%s\t%s\t%ld\t%ld\n" % (package_id, summary, package_license, group, desc, url, bytes, download_bytes)))
247248
sys.stdout.flush()
248249

249250
def files(self, package_id, file_list):

0 commit comments

Comments
 (0)