Makefile: change the way we test if the world file is empty.

Use stat(1) instead of catting the file.
This commit is contained in:
Albert Hopkins 2012-12-22 01:05:02 +00:00
parent d2eb7124a7
commit eb78b2716e
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ build-software: systools issue etc-update.conf $(CRITICAL) $(WORLD)
# the stage3 so may not be installed yet
#$(inroot) $(EMERGE) -1n $(USEPKG) app-arch/xz-utils
if test `cat $(WORLD)` ; then \
if test `stat -c "%s" $(WORLD)` -ne 0 ; then \
$(inroot) $(EMERGE) $(USEPKG) --update --newuse --deep `cat $(WORLD)` $(EXTRA_WORLD); \
else \
true; \