Fix #11458, pt.2: invoking jam from source dir does not work.

* Adjust package_repo create command to check if each given package
  exists before adding it to the repository writer and fail with
  an appropriate message when it does not.
This commit is contained in:
Oliver Tappe
2014-11-16 15:56:14 +01:00
parent f17d87fa17
commit 532b7b60a9
+4
View File
@@ -214,6 +214,10 @@ command_create(int argc, const char* const* argv)
if (verbose)
printf("reading package '%s' ...\n", packageFileNames[i]);
BEntry entry(packageFileNames[i]);
if (!entry.Exists()) {
printf("package '%s' does not exist\n", packageFileNames[i]);
return 1;
}
result = repositoryWriter.AddPackage(entry);
if (result != B_OK)
return 1;