* don't copy /var (bug #3584)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29707 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3c394ad89e
commit
934e233b60
@ -268,7 +268,8 @@ CopyEngine::CopyFolder(BDirectory &srcDir, BDirectory &targetDir)
|
||||
if (S_ISDIR(statbuf.st_mode)) {
|
||||
char name[B_FILE_NAME_LENGTH];
|
||||
if (entry.GetName(name) == B_OK
|
||||
&& strcmp(name, PACKAGES_DIRECTORY) == 0) {
|
||||
&& (strcmp(name, PACKAGES_DIRECTORY) == 0
|
||||
|| strcmp(name, VAR_DIRECTORY) == 0)) {
|
||||
continue;
|
||||
}
|
||||
err = FSCopyFolder(&entry, &targetDir, fControl, NULL, false, undo);
|
||||
|
@ -31,6 +31,7 @@ const uint32 STATUS_MESSAGE = 'iSTM';
|
||||
const uint32 INSTALL_FINISHED = 'iIFN';
|
||||
const uint32 RESET_INSTALL = 'iRSI';
|
||||
const char PACKAGES_DIRECTORY[] = "_packages_";
|
||||
const char VAR_DIRECTORY[] = "var";
|
||||
|
||||
class InstallerWindow : public BWindow {
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user