- 0anacron.{daily,weekly,monthly} sterror's output also goes to dev/null
This commit is contained in:
parent
021b66a3d8
commit
2efbfa90e3
2 changed files with 44 additions and 1 deletions
36
anacron-2.3-sterr_null.patch
Normal file
36
anacron-2.3-sterr_null.patch
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
diff -up anacron-2.3/debian/0anacron.monthly.err anacron-2.3/debian/0anacron.monthly
|
||||
--- anacron-2.3/debian/0anacron.monthly.err 2007-12-11 09:07:12.000000000 +0100
|
||||
+++ anacron-2.3/debian/0anacron.monthly 2008-02-28 14:05:55.000000000 +0100
|
||||
@@ -11,7 +11,7 @@
|
||||
# on_ac_power doesn't exist, on_ac_power returns 0 (ac power being used)
|
||||
if test -x /usr/bin/on_ac_power
|
||||
then
|
||||
- /usr/bin/on_ac_power > /dev/null
|
||||
+ /usr/bin/on_ac_power &> /dev/null
|
||||
if test $? -eq 1
|
||||
then
|
||||
echo "deferred while on battery power."
|
||||
diff -up anacron-2.3/debian/0anacron.weekly.err anacron-2.3/debian/0anacron.weekly
|
||||
--- anacron-2.3/debian/0anacron.weekly.err 2007-12-11 09:07:12.000000000 +0100
|
||||
+++ anacron-2.3/debian/0anacron.weekly 2008-02-28 14:06:03.000000000 +0100
|
||||
@@ -11,7 +11,7 @@
|
||||
# on_ac_power doesn't exist, on_ac_power returns 0 (ac power being used)
|
||||
if test -x /usr/bin/on_ac_power
|
||||
then
|
||||
- /usr/bin/on_ac_power > /dev/null
|
||||
+ /usr/bin/on_ac_power &> /dev/null
|
||||
if test $? -eq 1
|
||||
then
|
||||
echo "deferred while on battery power."
|
||||
diff -up anacron-2.3/debian/0anacron.daily.err anacron-2.3/debian/0anacron.daily
|
||||
--- anacron-2.3/debian/0anacron.daily.err 2007-12-11 09:07:12.000000000 +0100
|
||||
+++ anacron-2.3/debian/0anacron.daily 2008-02-28 14:05:48.000000000 +0100
|
||||
@@ -11,7 +11,7 @@
|
||||
# on_ac_power doesn't exist, on_ac_power returns 0 (ac power being used)
|
||||
if test -x /usr/bin/on_ac_power
|
||||
then
|
||||
- /usr/bin/on_ac_power > /dev/null
|
||||
+ /usr/bin/on_ac_power &> /dev/null
|
||||
if test $? -eq 1
|
||||
then
|
||||
echo "deferred while on battery power."
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
Summary: A cron-like program that can run jobs lost during downtime
|
||||
Name: anacron
|
||||
Version: 2.3
|
||||
Release: 58%{?dist}
|
||||
Release: 59%{?dist}
|
||||
License: GPLv2+
|
||||
Group: System Environment/Base
|
||||
URL: http://packages.debian.org/stable/source/anacron
|
||||
|
|
@ -14,6 +14,7 @@ Patch2: anacron-2.3-fdclose.patch
|
|||
Patch3: anacron-2.3-pic.patch
|
||||
Patch4: anacron-2.3-memleaking.patch
|
||||
Patch5: anacron-2.3-onbattery.patch
|
||||
Patch6: anacron-2.3-sterr_null.patch
|
||||
|
||||
Requires: crontabs
|
||||
Requires: initscripts
|
||||
|
|
@ -46,6 +47,7 @@ jobs of other Red Hat Linux (or Fedora) packages are executed each day.
|
|||
%patch3 -p1 -b .pic
|
||||
%patch4 -p1 -b .memleaking
|
||||
%patch5 -p1 -b .onbattery
|
||||
%patch6 -p1 -b .sterr
|
||||
|
||||
%build
|
||||
make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
|
||||
|
|
@ -105,6 +107,11 @@ fi
|
|||
%attr(755,root,root) %dir /etc/cron.weekly/0anacron
|
||||
|
||||
%changelog
|
||||
* Mon Dec 10 2007 Marcela Maslanova <mmaslano@redhat.com> 2.3-59
|
||||
- 0anacron.{daily,weekly,monthly} sterror's output also goes to
|
||||
dev/null
|
||||
- rhbz#435255
|
||||
|
||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.3-58
|
||||
- Autorebuild for GCC 4.3
|
||||
|
||||
|
|
|
|||
Reference in a new issue