Fix #7189 : linkcatkeys erases file with plain catalog data instead of writing it as a resource.
Was only a missing break in switch/case. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42432 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -136,6 +136,7 @@ main(int argc, char **argv)
|
||||
|
||||
switch(outputTarget) {
|
||||
case TARGET_ATTRIBUTE: {
|
||||
printf("To attribute\n");
|
||||
BEntry entry(outputFile.String());
|
||||
entry_ref eref;
|
||||
entry.GetRef(&eref);
|
||||
@@ -159,6 +160,7 @@ main(int argc, char **argv)
|
||||
outputFile.String(), strerror(res));
|
||||
exit(-1);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
res = targetCatalog.WriteToFile(outputFile.String());
|
||||
@@ -168,6 +170,7 @@ main(int argc, char **argv)
|
||||
outputFile.String(), strerror(res));
|
||||
exit(-1);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (showSummary) {
|
||||
|
||||
Reference in New Issue
Block a user