Skip to content

Commit

Permalink
Improve the error message for payload installation failures
Browse files Browse the repository at this point in the history
  • Loading branch information
rickysarraf committed Aug 2, 2023
1 parent 61ba52b commit 561c9d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apt_offline_core/AptOfflineCoreLib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2092,12 +2092,12 @@ def listdir_fullpath(self, d):
if InstallerInstance.Bool_Untrusted:
log.err("Disabling apt gpg check can risk your machine to compromise.\n")
if not InstallerInstance.installVerifiedList(FileList, FileList):
log.err("Failed to verify File Checksum integrity of APT files\n")
log.err("Failed to synchronize the APT payload\n")
sys.exit(1)
else:
verifiedList = InstallerInstance.verifyAptFileIntegrity(FileList)
if not InstallerInstance.installVerifiedList(verifiedList, FileList):
log.err("Failed to verify File Checksum integrity of APT files\n")
log.err("Failed to synchronize the APT payload\n")
sys.exit(1)

elif os.path.isdir(installPath):
Expand Down Expand Up @@ -2195,7 +2195,7 @@ def DirInstallPackages(InstallDirPath):
lFileList = InstallerInstance.listdir_fullpath(installPath)
verifiedList = InstallerInstance.verifyAptFileIntegrity(lFileList)
if not InstallerInstance.installVerifiedList(verifiedList, lFileList):
log.err("Failed to verify File Checksum integrity of APT files\n")
log.err("Failed to synchronize the APT payload\n")
sys.exit(1)

# Call for processing the debs and source package metadata
Expand Down

0 comments on commit 561c9d1

Please sign in to comment.