commit:     89e8e0b1285739ca70922afab048c803f125df30
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun May 17 12:02:06 2020 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun May 17 12:02:06 2020 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=89e8e0b1

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 <grobian <AT> gentoo.org>

 qtbz2.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/qtbz2.c b/qtbz2.c
index a02b477..7cc0b37 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        - <[email protected]>
@@ -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);

Reply via email to