lethliel
4b2bfb0b80
add version command to print the used version
2022-08-17 22:21:02 +02:00
6cb7412749
Remove duplicated --debug and --verbose options
...
Additional changes:
* rename getbinaries --debug to --debuginfo to avoid conflicts
* switch conf['verbose'] from int to bool
The changes were needed because the new argparser behaves differently
and commands such as `osc ls` ran in verbose mode by default.
2022-08-12 10:06:00 +02:00
84c97ab625
Fix crash caused by concatenating bytes with string
2022-08-12 10:06:00 +02:00
be8a5268a8
Replace unmaintained cmdln.py with a custom code
...
Cmdln.py is unmaintained for years and uses deprecated optparse.
Let's replace it with a simpler custom code. Also remove code
that generates man page, we'll replace it with a 3rd party tool.
2022-08-12 10:05:59 +02:00
e469c2c184
Merge pull request #1041 from AdamMajer/master
...
Add support for project separator
2022-08-12 10:03:23 +02:00
Anatoli Babenia
0036aa931e
Print debug messages to stderr
2022-08-04 17:12:57 +03:00
Anatoli Babenia
988f19f9ce
Document build
repo selection logic
2022-08-03 13:36:31 +03:00
Anatoli Babenia
0660c14a62
Add debug print for REPO (and desc just in case)
2022-08-03 10:40:29 +03:00
Anatoli Babenia
0b6039025f
Shortened build
help and add debug prints
...
Debug prints are needed for troubleshooting ARCH selection problem in
https://github.com/openSUSE/osc/pull/241#issuecomment-1203463612
2022-08-03 08:36:51 +03:00
Anatoli Babenia
d9bc6d1c12
Remove unused code for discontinued distributions
2022-08-02 14:47:56 +03:00
Anatoli Babenia
5751222bd0
Remove extra line from the end of osc dists
output
2022-08-02 14:45:23 +03:00
Anatoli Babenia
4d6a6aaf96
Move output formatting from core
into commandline
...
This makes `get_distributions()` return list of dicts.
2022-08-02 14:45:23 +03:00
Anatoli Babenia
10a156d4ca
Fix spelling mistake in get_distributions
method name
2022-08-02 14:45:23 +03:00
Anatoli Babenia
560e556d36
Do not ask for login for -h,--help
2022-07-29 18:59:25 +03:00
eb83b42f32
Fix several undefined-variable issues reported by pylint
2022-07-28 21:01:16 +02:00
feb53212dd
Modernize code with pyupgrade
...
pyupgrade --keep-percent-format --py36-plus `find -name '*.py'`
2022-07-28 19:14:12 +02:00
229913a77f
Clean imports up, drop python 2 fallbacks
2022-07-28 13:17:43 +02:00
e16e196fa1
Merge pull request #1040 from dmach/fix/multibuild-commandline
...
Fix -M/--multibuild user experience, allow globs where possible
2022-07-28 11:03:34 +02:00
84fa637556
Add XDG compatible location for osc plugins.
...
I believe it is generally a good idea to move stuff from $HOME to
XDG-compatible directories.
2022-07-28 10:26:13 +02:00
ff1ae5e25e
Fix multibuild packages in osc wipebinaries
2022-07-26 09:51:16 +02:00
f70b480cab
Fix multibuild packages in osc jobhistory
2022-07-26 09:51:16 +02:00
a51524e5af
Fix multibuild packages in osc buildhistory
2022-07-26 09:51:16 +02:00
1a4942da83
Fix multibuild packages in osc build
2022-07-26 09:51:16 +02:00
5198b6334b
Fix multibuild packages in osc buildinfo
2022-07-26 09:51:16 +02:00
0fd93f7443
Fix multibuild packages in osc triggerreason
2022-07-26 09:51:16 +02:00
182e8e20a4
Fix multibuild packages in osc remotebuildlog
2022-07-26 09:51:15 +02:00
26ad5aa35c
Fix multibuild packages in osc buildlog
2022-07-26 09:51:15 +02:00
502bff50ff
Fix multibuild packages in osc restartbuild
2022-07-26 09:51:15 +02:00
30a3106375
Fix multibuild packages in osc sendsysrq
2022-07-26 09:51:15 +02:00
55ad41d33b
Fix multibuild packages in osc results
2022-07-26 09:51:15 +02:00
6ccdb9cfe3
Fix multibuild packages in osc rebuild
2022-07-26 09:51:15 +02:00
637cfe8471
Merge pull request #1023 from dmach/fix/622-additional-changes
...
parseRevisionOption(): Raise an exception on invalid revisons
2022-07-25 18:26:06 +02:00
8d843b5968
Revert "interpretation of string literals in messages"
...
Emojis were broken due to this commit.
The revert causes a change in behavior:
"\n" no longer gets resolved to a newline.
It is suggested to do the following instead:
$ osc <command> ... -m "first line
second line"
This reverts commit 16fda3115c
.
2022-07-07 15:42:22 +02:00
Adam Majer
f10247014d
Process input with configurable project separators
...
This allows for usage of configurable project name separator in
the command line inputs
Fixes : #1024
2022-07-04 15:05:05 +02:00
Adam Majer
c4c2d2a933
Add project_separator to config file
...
This allows for arbitrary string to be used as a project
separator instead of restricting oneself to : or directory
structure.
Fixes : #1024
2022-07-04 15:05:05 +02:00
253d760a76
fix crash on "osc up" for git based package/projects
2022-06-24 08:46:49 +02:00
295ea7f356
Warn when trying to commit a prj/pac managed in scm
2022-06-08 14:18:33 +02:00
fad89f8e09
Merge pull request #1027 from adrianschroeter/github
...
add another exception for github URLs for "osc add"
2022-06-02 10:21:02 +02:00
a223dd085a
Merge pull request #1009 from dmach/aggregatepac-flavor
...
Support flavors in aggregatepac
2022-06-02 10:06:21 +02:00
cf5da11b26
Enable md5 revisions in osc log
2022-06-02 10:02:32 +02:00
Mihai Moldovan
f2474fa7f0
commandline: handle calls without arguments gracefully
...
Fixes the following error:
```
% osc
Traceback (most recent call last):
File "/usr/bin/osc", line 45, in <module>
r = babysitter.run(osccli)
File "/usr/lib/python3.10/site-packages/osc/babysitter.py", line 67, in run
return prg.main(argv)
File "/usr/lib/python3.10/site-packages/osc/cmdln.py", line 341, in main
self.postoptparse()
File "/usr/lib/python3.10/site-packages/osc/commandline.py", line 137, in postoptparse
if self._get_canonical_cmd_name(self.args[0]) == "help":
IndexError: list index out of range
```
2022-05-30 20:43:37 +02:00
Marco Strigl
c3d535c3b2
Merge pull request #1012 from adrianschroeter/obs_git
...
initial obs-git support
2022-05-24 11:39:45 +02:00
cc0b8f1606
Never require login in the help command
2022-05-05 11:07:28 +02:00
Dirk Müller
56ad831a39
Add osc helm type build support
2022-05-04 23:17:20 +02:00
c875ca2886
initial obs-git support
...
* init command is working inside of a git repository
* downloadassets command fetches references assets from build description
* checkout is cloning from git
2022-04-29 09:59:13 +02:00
Dirk Müller
3ed913c007
Whitespace fixes as expected by pycodestyle/pep8
2022-04-27 14:13:18 +02:00
Dirk Müller
69c83d41aa
add support for building preinstall images
...
This is yet another build type supported by the obs-build
script intended to build images that speed up the build setup
phase.
2022-04-27 14:00:00 +02:00
Dirk Müller
32f37e307a
Stylistic cleanups
2022-04-26 09:37:18 +02:00
Marco Strigl
d5e04f806f
Merge pull request #1015 from dmach/fix/1014-getbinaries-download-into-subdirs
...
Fix getbinaries command by downloading files in subdirs named by the packages
2022-04-25 11:29:35 +02:00
e88459e02b
add another exception for github URLs for "osc add"
...
osc#905
2022-04-11 08:48:30 +02:00