From 5216793a6914d5b8f3f5e6dc00e614033753b9f5 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Wed, 11 Feb 2009 17:09:04 -0800 Subject: [PATCH] Count all copies of a hardlink when determining CD size for now, until bug #485167 is fixed. --- src/pypungi/splittree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pypungi/splittree.py b/src/pypungi/splittree.py index a7111cb6..2268b296 100644 --- a/src/pypungi/splittree.py +++ b/src/pypungi/splittree.py @@ -109,13 +109,13 @@ self.reserve_size : Additional size needed to be reserved on the first disc. """Gets the size as reported by du -sL""" if blocksize: - p = os.popen("du -sL --block-size=1 %s" % path, 'r') + p = os.popen("du -slL --block-size=1 %s" % path, 'r') thesize = p.read() p.close() thesize = long(string.split(thesize)[0]) return thesize else: - p = os.popen("du -sLh %s" % path, 'r') + p = os.popen("du -slLh %s" % path, 'r') thesize = p.read() p.close() thesize = string.split(thesize)[0]