From 70942e1fef37d8661b0a0f4d4ed1612dc6574455 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 28 Apr 2020 10:55:48 +0200 Subject: silent rpm --version during installation/removal Calling "LC_ALL=C rpm --version" from urpm::install::install_logger() sometimes causes the following to be displayed when using --urpmi-root: "shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory" Typically, we run into: chdir("/") = 0 chroot("/home/tv/mga/pkgs/RPM/perl-URPM/mga7/") = 0 (...) clone() execve("/bin/sh", ["sh", "-c", "LC_ALL=C rpm --version"], ... getcwd("(unreachable)/", 4095) = 15 So just caches the rpm version prior to the first transaction and voila --- NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 66be375d..d6a060fa 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,9 @@ o try harder to find genhdlist2 in uninstalled CPAN modules o work without glibc-static-devel o workaround %find_lang sometimes failing on FreeBSD +- library: + o fix rpm version check causing strange warning messages: + "shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory" - testsuite: o add more extensive tests o describe it more -- cgit v1.2.1