How to create a project using osc?
hi, I checked the help file of the osc command, and I found the only possible subcommand "osc init" to create a project. I tried it, but the result was wrong. The following information was returned: obs:/home/loongson/thirdpart_projects # ls mars obs:/home/loongson/thirdpart_projects # osc -A https://obs init mars .... Password: Server returned an error: HTTP Error 404: Not Found mars obs:/home/loongson/thirdpart_projects # osc add mars/ A mars obs:/home/loongson/thirdpart_projects # osc commit Password: Server returned an error: HTTP Error 404: Not Found mars obs:/home/loongson/thirdpart_projects # Did I use the wrong command? By the way, what is the function of the channel in the osc command? thanks
On Freitag, 8. Januar 2021, 07:50:05 CET huangyang wrote:
hi,
I checked the help file of the osc command,
and I found the only possible subcommand "osc init" to create a project.
I tried it, but the result was wrong. The following information was returned:
obs:/home/loongson/thirdpart_projects # ls mars obs:/home/loongson/thirdpart_projects # osc -A https://obs init mars .... Password: Server returned an error: HTTP Error 404: Not Found mars obs:/home/loongson/thirdpart_projects # osc add mars/ A mars obs:/home/loongson/thirdpart_projects # osc commit Password: Server returned an error: HTTP Error 404: Not Found mars obs:/home/loongson/thirdpart_projects #
init is for local creation. Use
osc meta prj -e $project_name
for remote creation.
--
Adrian Schroeter
Thank you for your answer, I have another question:
“osc meta prj -e $project_name” is the interactive command
If I plan to call a command from a shell script, how can I satisfy its interaction?
At 2021-01-08 15:27:26, "Adrian Schröter"
On Freitag, 8. Januar 2021, 07:50:05 CET huangyang wrote:
hi,
I checked the help file of the osc command,
and I found the only possible subcommand "osc init" to create a project.
I tried it, but the result was wrong. The following information was returned:
obs:/home/loongson/thirdpart_projects # ls mars obs:/home/loongson/thirdpart_projects # osc -A https://obs init mars .... Password: Server returned an error: HTTP Error 404: Not Found mars obs:/home/loongson/thirdpart_projects # osc add mars/ A mars obs:/home/loongson/thirdpart_projects # osc commit Password: Server returned an error: HTTP Error 404: Not Found mars obs:/home/loongson/thirdpart_projects #
init is for local creation. Use
osc meta prj -e $project_name
for remote creation.
--
Adrian Schroeter
Build Infrastructure Project Manager SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany (HRB 247165, AG München), Geschäftsführer: Felix Imendörffer
On Jan 08 2021, huangyang wrote:
“osc meta prj -e $project_name” is the interactive command
If I plan to call a command from a shell script, how can I satisfy its interaction?
$ osc meta -h ... -F FILE, --file=FILE read metadata from FILE, instead of opening an editor. '-' denotes standard input. ... Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."
participants (3)
-
Adrian Schröter
-
Andreas Schwab
-
huangyang