aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConnor Baker <connorbaker01@gmail.com>2021-12-03 22:16:02 -0500
committerConnor Baker <connorbaker01@gmail.com>2021-12-03 22:16:02 -0500
commit52f5fa948a4784b6a9b707770f4beee6a8674dee (patch)
treee038ea240a56157d7444f93ece99c372f7710133 /src
parent2e606e87c44a8dc42664f8938eac1d4b63047dd6 (diff)
Add support for .tar.gz shorthand (.tgz) to TarballInputScheme
Diffstat (limited to 'src')
-rw-r--r--src/libfetchers/tarball.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libfetchers/tarball.cc b/src/libfetchers/tarball.cc
index 031ccc5f7..69d020748 100644
--- a/src/libfetchers/tarball.cc
+++ b/src/libfetchers/tarball.cc
@@ -176,6 +176,7 @@ struct TarballInputScheme : InputScheme
if (!hasSuffix(url.path, ".zip")
&& !hasSuffix(url.path, ".tar")
+ && !hasSuffix(url.path, ".tgz")
&& !hasSuffix(url.path, ".tar.gz")
&& !hasSuffix(url.path, ".tar.xz")
&& !hasSuffix(url.path, ".tar.bz2")