You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a discrepancy between apt-get update and apt-offline get for updates.
While the apt-get update works, apt-offline get does not work when the Packages file does not have any extension in the remote repository. Somehow, apt-get update seems to resolve. But not apt-offline.
apt-get update is able to resolve this and fetch the right file. But not, apt-offline. I have a patch that tries without a supported extension if everything fails.
diff --git a/apt_offline_core/AptOfflineCoreLib.py b/apt_offline_core/AptOfflineCoreLib.py
index ffa9518..e746ca4 100644
--- a/apt_offline_core/AptOfflineCoreLib.py
+++ b/apt_offline_core/AptOfflineCoreLib.py
@@ -1620,7 +1620,7 @@ def fetcher(args):
# INFO: Handle the multiple Packages formats.
# See DTBS #583502
- SupportedFormats = ["bz2", "gz", "xz", "lzma"]
+ SupportedFormats = ["bz2", "gz", "xz", "lzma", None]
# INFO: We are a package update
PackageName = url
@@ -1665,10 +1665,13 @@ def fetcher(args):
pkgFileWithType.rstrip(pkgFileWithType.split(".")[-1]).rstrip(
"."
)
- + "."
- + Format
+ + (("." + Format) if Format else "")
)
- NewUrl = url.replace(PackageFormat, Format)
+
+ NewUrl = url.replace(PackageFormat, Format if Format else "")
+ if not Format:
+ NewUrl=NewUrl[:-1]
+
log.verbose(
"Retry download %s %s\n" % (
NewUrl, LINE_OVERWRITE_FULL)
The text was updated successfully, but these errors were encountered:
Note to self: The reason we do this compression type ping-pong is because we don't rely on the InRelease file to ascertain the URLs to be downloaded. Instead, we always rely on the client apt tool to report it. And then do the ping-pong cycle.
If we rely on the InRelease file solely, it'd mean we scrape and discard the remaining URL for --update, that were generated on the client with set --update.
Then, there's also set --no-checksum option. Possibly, it would conflict this as well.
So, for now, the current approach should suffice. We should only check on how best to handle the uncompressed apt metadata indices.
There is a discrepancy between apt-get update and apt-offline get for updates.
While the apt-get update works, apt-offline get does not work when the Packages file does not have any extension in the remote repository. Somehow, apt-get update seems to resolve. But not apt-offline.
URL does not exist for Packages.xz
It exists only for Packages
apt-get update is able to resolve this and fetch the right file. But not, apt-offline. I have a patch that tries without a supported extension if everything fails.
The text was updated successfully, but these errors were encountered: