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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user