You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"Git SCM package working copy doesn't have the following metadata set: {', '.join(missing)}\n"
277
-
"Use 'git-obs meta pull' or 'git-obs meta set' to fix that"
278
-
)
293
+
msg=f"Git SCM package working copy doesn't have the following metadata set: {', '.join(missing)}\n"
294
+
295
+
ifself.project_store:
296
+
msg+=f" - The package has a parent project checkout: {self.project_store.abspath}\n"
297
+
else:
298
+
msg+=" - The package has no parent project checkout\n"
299
+
300
+
if"apiurl"inmissing:
301
+
msg+="\n"
302
+
msg+="To fix apiurl:\n"
303
+
ifself.project_store:
304
+
msg+= (
305
+
" - Run 'git-obs meta pull' IN THE PROJECT in the parent directory to retrieve the 'obs_apiurl' value from 'obs/configuration' repo, 'main' branch, 'configuration.yaml' file\n"
306
+
" - run 'git-obs meta set --apiurl=...' IN THE PROJECT\n"
307
+
)
308
+
else:
309
+
msg+= (
310
+
" - Run 'git-obs meta set --apiurl=...'\n"
311
+
)
312
+
313
+
if"project"inmissing:
314
+
msg+="\n"
315
+
msg+="To fix project:\n"
316
+
317
+
ifself.project_store:
318
+
msg+= (
319
+
" - Set 'obs_project' in '_manifest' file IN THE PROJECT\n"
320
+
" - Run 'git-obs meta set --project=...' IN THE PROJECT\n"
321
+
)
322
+
else:
323
+
msg+= (
324
+
f" - Set 'obs_project' in the matching _ObsPrj git repo, '{self._git.current_branch}' branch, '_manifest' file\n"
325
+
" Run 'git-obs meta pull'\n"
326
+
" - Run 'git-obs meta set --project=...'\n"
327
+
)
328
+
329
+
msg+="\nCheck git-obs-metadata man page for more details"
0 commit comments