fixes #16 - forces tool to create an empty file in the root tool directory as a basis for initial patch generation

This commit is contained in:
sfb 2013-02-12 12:45:46 -06:00
parent ddfc526d0c
commit 847f455a97

View file

@ -342,7 +342,7 @@ void CPackageDescription::generatePatches(CBNPFileSet& packageIndex) const
std::string prevVersionFileName;
if (packageIndex.getFile(i).versionCount()==1)
{
prevVersionFileName= tmpnam(NULL);
prevVersionFileName= _RootDirectory + "empty";
NLMISC::COFile tmpFile(prevVersionFileName);
tmpFile.close();
}