RIFT 16618 access checksum validation information through a different property.
authorsinhan <nandan.sinha@riftio.com>
Thu, 18 May 2017 21:16:44 +0000 (21:16 +0000)
committersinhan <nandan.sinha@riftio.com>
Thu, 18 May 2017 21:19:01 +0000 (21:19 +0000)
Signed-off-by: sinhan <nandan.sinha@riftio.com>
rwlaunchpad/plugins/rwlaunchpadtasklet/rift/tasklets/rwlaunchpad/uploader.py

index ed3e683..e89c50a 100644 (file)
@@ -413,13 +413,13 @@ class UpdatePackage(downloader.DownloaderProtocol):
         checksum_validator = rift.package.package.PackageChecksumValidator(self.log)
 
         try:
-            file_checksums = checksum_validator.validate(package)
+            checksum_validator.validate(package)
         except rift.package.package.PackageFileChecksumError as e:
             raise MessageException(UpdateChecksumMismatch(e.filename)) from e
         except rift.package.package.PackageValidationError as e:
             raise MessageException(UpdateUnreadablePackage()) from e
 
-        return file_checksums
+        return checksum_validator.checksums
 
     def update_descriptors(self, package):
         descriptor_msg = package.descriptor_msg