From 89e8e0b1285739ca70922afab048c803f125df30 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 17 May 2020 14:02:06 +0200 Subject: qtbz2: drop warning about archive not being bz2 compressed Since we support many compression formats, and Portage is switching to zstd compression by default, it makes no sense to warn about the compression format used. Signed-off-by: Fabian Groffen --- qtbz2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'qtbz2.c') diff --git a/qtbz2.c b/qtbz2.c index a02b477f..7cc0b37b 100644 --- a/qtbz2.c +++ b/qtbz2.c @@ -1,5 +1,5 @@ /* - * Copyright 2005-2019 Gentoo Foundation + * Copyright 2005-2020 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 * * Copyright 2005-2010 Ned Ludd - @@ -83,8 +83,6 @@ tbz2_compose(int dir_fd, const char *tarbz2, const char *xpak, const char *tbz2) fclose(out); return ret; } - if (pread(fd, buf, 3, 0) != 3 || memcmp(buf, "BZh", 3)) - warn("%s: does not appear to be a .tar.bz2", tarbz2); in_tarbz2 = fdopen(fd, "r"); if (in_tarbz2 == NULL) { fclose(out); -- cgit v1.2.3-65-gdbad