- determine file size via stat
instead of ls
(#523682)
This commit is contained in:
parent
e99cc3499f
commit
b70aaadb53
@ -20,7 +20,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
|
|||||||
Name: bind
|
Name: bind
|
||||||
License: ISC
|
License: ISC
|
||||||
Version: 9.7.0
|
Version: 9.7.0
|
||||||
Release: 0.3.%{PREVER}%{?dist}
|
Release: 0.4.%{PREVER}%{?dist}
|
||||||
Epoch: 32
|
Epoch: 32
|
||||||
Url: http://www.isc.org/products/BIND/
|
Url: http://www.isc.org/products/BIND/
|
||||||
Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@ -595,6 +595,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%ghost %{chroot_prefix}/etc/localtime
|
%ghost %{chroot_prefix}/etc/localtime
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 21 2009 Adam Tkac <atkac redhat com> 32:9.7.0-0.4.a3
|
||||||
|
- determine file size via `stat` instead of `ls` (#523682)
|
||||||
|
|
||||||
* Wed Sep 16 2009 Adam Tkac <atkac redhat com> 32:9.7.0-0.3.a3
|
* Wed Sep 16 2009 Adam Tkac <atkac redhat com> 32:9.7.0-0.3.a3
|
||||||
- update to 9.7.0a3
|
- update to 9.7.0a3
|
||||||
|
|
||||||
|
@ -76,8 +76,7 @@ mount_chroot_conf()
|
|||||||
# If mount source is a file
|
# If mount source is a file
|
||||||
if ! [ -d "$all" ]; then
|
if ! [ -d "$all" ]; then
|
||||||
# mount it only if it is not present in chroot or it is empty
|
# mount it only if it is not present in chroot or it is empty
|
||||||
if ! [ -e "$ROOTDIR$all" ] ||
|
if ! [ -e "$ROOTDIR$all" ] || [ `stat -c'%s' "$ROOTDIR$all"` -eq 0 ]; then
|
||||||
[ `ls -s "$ROOTDIR$all" | awk '{ print $1 };'` -eq 0 ]; then
|
|
||||||
touch "$ROOTDIR$all"
|
touch "$ROOTDIR$all"
|
||||||
mount --bind "$all" "$ROOTDIR$all"
|
mount --bind "$all" "$ROOTDIR$all"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user