Don't be verbose in fixfiles if there is not tty

This commit is contained in:
Dan Walsh 2014-02-14 12:33:24 -05:00
parent 5dc80ea534
commit f17032379c
2 changed files with 16 additions and 1 deletions

View File

@ -657375,6 +657375,18 @@ index fb5a24c..3668abe 100644
if self.__options.setype:
self.setype = self.__options.setype
diff --git a/policycoreutils/scripts/fixfiles b/policycoreutils/scripts/fixfiles
index 5c29eb9..75d3c8d 100755
--- a/policycoreutils/scripts/fixfiles
+++ b/policycoreutils/scripts/fixfiles
@@ -116,6 +116,7 @@ exclude_dirs() {
fullFlag=0
BOOTTIME=""
VERBOSE="-p"
+[ -t 1 ] || VERBOSE=""
FORCEFLAG=""
DIRS=""
RPMILES=""
diff --git a/policycoreutils/semanage/Makefile b/policycoreutils/semanage/Makefile
index 8fc8e0b..9bb4f24 100644
--- a/policycoreutils/semanage/Makefile

View File

@ -7,7 +7,7 @@
Summary: SELinux policy core utilities
Name: policycoreutils
Version: 2.2.5
Release: 5%{?dist}
Release: 6%{?dist}
License: GPLv2
Group: System Environment/Base
# Based on git repository with tag 20101221
@ -383,6 +383,9 @@ The policycoreutils-restorecond package contains the restorecond service.
%systemd_postun_with_restart restorecond.service
%changelog
* Fri Feb 14 2014 Dan Walsh <dwalsh@redhat.com> - 2.2.5-6
- Don't be verbose in fixfiles if there is not tty
* Thu Feb 13 2014 Dan Walsh <dwalsh@redhat.com> - 2.2.5-5
- Yum should only be required for policycoreutils-devel