projects/aports·blob master · refs

16 lines · 668 B

1Detect .apk as tarballs.
2
3This is based on https://github.com/void-linux/void-packages/blob/c4880df0bb88e6e9ba08bd22f2ada592a6e60fc7/srcpkgs/libabigail/patches/xbps.patch.
4
5--- a/src/abg-tools-utils.cc
6+++ b/src/abg-tools-utils.cc
7@@ -1856,7 +1856,8 @@ guess_file_type(const string& file_path, bool look_through_compression)
8 || string_ends_with(file_path, ".tlz")
9 || string_ends_with(file_path, ".tar.Z")
10 || string_ends_with(file_path, ".taz")
11- || string_ends_with(file_path, ".tz"))
12+ || string_ends_with(file_path, ".tz")
13+ || string_ends_with(file_path, ".apk"))
14 return FILE_TYPE_TAR;
15
16 file_type r = FILE_TYPE_UNKNOWN;