summaryrefslogtreecommitdiff
path: root/apt-inst/deb
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2018-03-08 11:43:34 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2018-03-12 08:56:59 +0100
commitb91aff572bcbdfa9fbcc9be09778828718a62e34 (patch)
treeb8dcf91c034a1617dd4a6c119f7cf26cd06d1799 /apt-inst/deb
parent4de4200ec2717e777bbf99ed82d1b4344f078ec2 (diff)
apt-inst: Add support for zstd compressed debs
Whitelist support for zst members.
Diffstat (limited to 'apt-inst/deb')
-rw-r--r--apt-inst/deb/debfile.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/apt-inst/deb/debfile.cc b/apt-inst/deb/debfile.cc
index 8eef446bb..6f7cf5691 100644
--- a/apt-inst/deb/debfile.cc
+++ b/apt-inst/deb/debfile.cc
@@ -50,7 +50,9 @@ debDebFile::debDebFile(FileFd &File) : File(File), AR(File)
if (!CheckMember("control.tar") &&
!CheckMember("control.tar.gz") &&
- !CheckMember("control.tar.xz")) {
+ !CheckMember("control.tar.xz") &&
+ !CheckMember("control.tar.zst"))
+ {
_error->Error(_("This is not a valid DEB archive, missing '%s' member"), "control.tar");
return;
}
@@ -59,7 +61,9 @@ debDebFile::debDebFile(FileFd &File) : File(File), AR(File)
!CheckMember("data.tar.gz") &&
!CheckMember("data.tar.bz2") &&
!CheckMember("data.tar.lzma") &&
- !CheckMember("data.tar.xz")) {
+ !CheckMember("data.tar.xz") &&
+ !CheckMember("data.tar.zst"))
+ {
_error->Error(_("This is not a valid DEB archive, missing '%s' member"), "data.tar");
return;
}