1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-15 08:36:13 +01:00
Commit Graph

4856 Commits

Author SHA1 Message Date
0417ddf952
Merge pull request #1405 from adrianschroeter/fix
fix crash when settings like realname are not set.
2023-09-13 14:27:00 +02:00
1a42b7a2c9 Fix validating configuration by wrapping password into Password object 2023-09-13 14:25:47 +02:00
2e8fa9ef12 fix crash when settings like realname are not set.
Otherwise:
  File "/usr/lib/python3.11/site-packages/osc/core.py", line 451, in execute
    result = self._execute(dir, old_dir, callmode, singleservice, verbose)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/osc/core.py", line 493, in _execute
    vc_export_env(self.apiurl)
  File "/usr/lib/python3.11/site-packages/osc/core.py", line 8917, in vc_export_env
    os.environ[env] = val
    ~~~~~~~~~~^^^^^
  File "<frozen os>", line 684, in __setitem__
  File "<frozen os>", line 758, in encode
TypeError: str expected, not NoneType
2023-09-13 08:36:30 +02:00
Lars Vogdt
d911280ddd
Update AUTHORS: change my last name
I switched my last name - following up just here.
2023-09-12 09:15:28 +02:00
a5f56b1673
Merge pull request #1387 from dmach/config-type-checking
Switch 'osc.conf.config' from dict to Options class with type checking
2023-09-11 21:45:02 +02:00
c5e4f04ffa RTD: Bump ubuntu to 22.04 and python to 3.11 2023-09-11 21:14:47 +02:00
848f5fe48f Switch 'osc.conf.config' from dict to Options class with type checking 2023-09-11 21:14:45 +02:00
930b7a8a4e Add 'osc.util.models' module implementing an alternative pydantic-like data validation 2023-09-11 21:11:05 +02:00
54d1884e1d Add 'osc.util.xdg' module for handling XDG paths 2023-09-11 21:11:05 +02:00
Tammo Oepkes
b9014ccd56
Fix api_host_options for custom CAs (#1403) 2023-09-11 21:06:34 +02:00
b870782a51
Merge pull request #1401 from dmach/build-just-print-buildroot
Add '--just-print-buildroot' option to print build root path and exit to 'build' command
2023-09-11 09:19:24 +02:00
0a47cb3295
Merge pull request #1402 from andreas-schwab/master
search: resolve -B . to current project
2023-09-11 09:19:02 +02:00
Björn Bidar
a1396e62be Add zsh completion for build command
Signed-off-by: Björn Bidar <bjorn.bidar@jolla.com>
2023-09-09 01:57:29 +03:00
Björn Bidar
513fd3664f Fetch repository architectures in zsh completition
Signed-off-by: Björn Bidar <bjorn.bidar@jolla.com>
2023-09-09 01:57:29 +03:00
Björn Bidar
18bdf2e9b4 Complete help text for options that have separate handlers
Signed-off-by: Björn Bidar <bjorn.bidar@jolla.com>
2023-09-09 01:57:29 +03:00
Björn Bidar
2ec50ad939 Refactor help text generation in zsh completition so it can be reused
Signed-off-by: Björn Bidar <bjorn.bidar@jolla.com>
2023-09-09 01:57:29 +03:00
Björn Bidar
3082605144 Match more command aliases in the zsh completion
Signed-off-by: Björn Bidar <bjorn.bidar@jolla.com>
2023-09-09 01:57:29 +03:00
Björn Bidar
cb47bed4c3 Fetch project repositories list for zsh completion
Signed-off-by: Björn Bidar <bjorn.bidar@jolla.com>
2023-09-09 01:57:29 +03:00
Björn Bidar
09bfa0a9b5 Parse pwd's apiurl in zsh completion
Signed-off-by: Björn Bidar <bjorn.bidar@jolla.com>
2023-09-09 01:57:29 +03:00
Björn Bidar
b1d1069474 Fetch project list in zsh completition at runtime
Similar to the bash/tcsh completition fetch the project list at
runtime.
Includes basic completion for alias/api-url as project list
cache is separated per instance.

Signed-off-by: Björn Bidar <bjorn.bidar@jolla.com>
2023-09-09 01:57:29 +03:00
Björn Bidar
dc5eae0a09 Import zsh completition made by Holger Macht
Right now the zsh completition is packaged inside the zsh package on
OpenSUSE.
Several distributions either package it or the user has to import it
themselves.

It is better if it is stored here so any can pick it up in there zsh
package and put fixes in here.

The file was imported from the OpenSUSE zsh package plus a few spelling fixes.

Signed-off-by: Björn Bidar <bjorn.bidar@jolla.com>
2023-09-09 01:57:29 +03:00
e8fc97b231 search: resolve -B . to current project 2023-09-04 12:12:58 +02:00
465edfb098 Add '--just-print-buildroot' option to print build root path and exit to 'build' command 2023-09-04 11:48:11 +02:00
1dd06ca07f
Merge pull request #1400 from andreas-schwab/master
checkconstraints: add -M/--multibuild-package
2023-09-04 11:12:22 +02:00
657c45085b checkconstraints: add -M/--multibuild-package 2023-08-31 14:57:08 +02:00
4a0c9a0f70
Merge pull request #1399 from dmach/checkout-include-files
Implement 'exclude_files' and 'include_files' config options that allow skipping files in the 'checkout' command
2023-08-30 11:57:52 +02:00
77152aaf37
Merge pull request #1395 from andreas-schwab/checkconstraints
checkconstraints: allow constraints file with remote request
2023-08-30 11:57:25 +02:00
4255711344 Implement 'exclude_files' and 'include_files' config options that allow skipping files in the 'checkout' command
Examples:
    osc checkout --setopt='include_files=*.spec *.changes'
    osc checkout --setopt='exclude_files=*.tar.* *.obscpio'
2023-08-30 11:28:30 +02:00
daafc1906d checkconstraints: allow constraints file with remote request 2023-08-28 13:53:37 +02:00
a77f3d43d2 release 1.3.1 2023-08-28 13:33:45 +02:00
5f3dc21aad
Merge pull request #1394 from dmach/fix-build-opts-by-using-fstrings
Fix string + int concatenation errors in 'build' command by using f-strings
2023-08-28 13:24:58 +02:00
ec2c93a4be Fix string + int concatenation errors in 'build' command by using f-strings instead 2023-08-28 11:30:44 +02:00
ee1360ddf3
Merge pull request #1393 from dmach/fix-rebuild-all
Fix '--all' option in 'rebuild' command
2023-08-28 11:30:38 +02:00
baeca0b48b Fix '--all' option in 'rebuild' command
When 'osc rebuild --all' was executed from a package working copy,
the package name was automatically read and used instead
of passing None to the underlying rebuild() function.
2023-08-28 10:29:18 +02:00
7ab3a64f9b
Merge pull request #1392 from dmach/git-no-remote
Fix GitStore to error out properly if there is no 'origin' remote in the git repo
2023-08-28 10:27:03 +02:00
5a67bd3376 Fix GitStore to error out properly if there is no 'origin' remote in the git repo 2023-08-28 09:54:38 +02:00
6eb9c4b186 Stop suggesting that the working directory is git/mercurial/svn/cvs
We're using Git SCM now and the error message might be confusing in some cases
2023-08-28 09:49:39 +02:00
a01e6da19c
Merge pull request #1389 from dmach/fix-build-from-git-when-alternative-project-is-set
Fix 'build' command when '--alternative-project' option is specified …
2023-08-28 08:26:58 +02:00
a0d4889d64 Fix 'build' command when '--alternative-project' option is specified and the git branch cannot be mapped to a project 2023-08-23 12:02:25 +02:00
fa8da38747
Merge pull request #1380 from dirkmueller/helpful_deprecation
Be helpful in deprecating commands
2023-08-16 17:00:29 +02:00
bf4b847f2c
Merge pull request #1382 from andreas-schwab/master
print_buildlog: Remove control characters from build log before printing (CVE-2012-1095)
2023-08-15 15:04:07 +02:00
01f6690b2b
Merge pull request #1384 from dmach/fix-conf-types
Add more config options among integer options
2023-08-15 15:02:05 +02:00
f9dc3122f9 Add more config options among integer options 2023-08-15 14:29:18 +02:00
d857e5dbf8 print_buildlog: Remove control characters from build log before printing (CVE-2012-1095) 2023-08-15 10:15:09 +02:00
f9fbfd8e9d
Be helpful in deprecating commands
At least give *some* hint of what needs to be done rather than
just barking at the user. Also remove description of obsolete
commands.
2023-08-10 13:42:52 +02:00
57a4cdc6a4 release 1.3.0 2023-08-09 13:34:16 +02:00
391abc26a0
Merge pull request #1378 from dmach/fix-tests-oscrc
Fix (lack of) loading oscrc in tests
2023-08-09 13:17:00 +02:00
7ad815a149 tests: Fix TestMirrorGroup to load oscrc from fixtures 2023-08-09 13:07:06 +02:00
a5816132c7 tests: Fix TestConf to load oscrc from fixtures 2023-08-09 13:04:17 +02:00
79a2a5fda6 tests: Unset OSC_CONFIG env during tearDown() 2023-08-09 13:04:17 +02:00