RPM Package Manager, CVS Repository
http://rpm5.org/cvs/
____________________________________________________________________________
Server: rpm5.org Name: Ralf S. Engelschall
Root: /v/rpm/cvs Email: rse@rpm5.org
Module: rpm Date: 08-Feb-2008 16:43:03
Branch: HEAD Handle: 2008020815430300
Modified files:
rpm rpmqv.c
Log:
OpenPKG-specific: sleep only if at least one of stdin or stdout is
connected to a TTY
Summary:
Revision Changes Path
1.143 +2 -1 rpm/rpmqv.c
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: rpm/rpmqv.c
============================================================================
$ cvs diff -u -r1.142 -r1.143 rpmqv.c
--- rpm/rpmqv.c 2 Feb 2008 00:10:23 -0000 1.142
+++ rpm/rpmqv.c 8 Feb 2008 15:43:03 -0000 1.143
@@ -352,7 +352,8 @@
/* final result handling */
if (rc != INTEGRITY_OK) {
- sleep(4);
+ if (isatty(STDIN_FILENO) || isatty(STDOUT_FILENO))
+ sleep(4);
if (rc == INTEGRITY_ERROR)
exit(42);
}
@@ .
Received on Fri Feb 8 16:43:03 2008