aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/portage/dbapi/bintree.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/portage/dbapi/bintree.py b/lib/portage/dbapi/bintree.py
index b441fff9a..0857ff21a 100644
--- a/lib/portage/dbapi/bintree.py
+++ b/lib/portage/dbapi/bintree.py
@@ -1039,6 +1039,12 @@ class binarytree:
if match:
binpkg_format = match.get("BINPKG_FORMAT", None)
+ if not binpkg_format:
+ if myfile.endswith(SUPPORTED_XPAK_EXTENSIONS):
+ binpkg_format = "xpak"
+ elif myfile.endswith(SUPPORTED_GPKG_EXTENSIONS):
+ binpkg_format = "gpkg"
+
if gpkg_only:
if binpkg_format != "gpkg":
if not gpkg_only_warned: