placeholder, use a file containing a comment like this:
# empty file because --include-config=n when `quickpkg` was used
svn path=/main/trunk/; revision=15278
import os as _os
import stat
import sys
+import tempfile
import time
import warnings
if protect and protect(path):
# Create an empty file as a place holder in order to avoid
# potential collision-protect issues.
- tarinfo.size = 0
- tar.addfile(tarinfo)
+ f = tempfile.TemporaryFile()
+ f.write("# empty file because --include-config=n " + \
+ "when `quickpkg` was used\n")
+ f.flush()
+ f.seek(0)
+ tarinfo.size = os.fstat(f.fileno()).st_size
+ tar.addfile(tarinfo, f)
+ f.close()
else:
f = open(_unicode_encode(path,
encoding=object.__getattribute__(os, '_encoding'),