b5a5143da6
Move core.File to obs_scm.File
2024-04-15 13:56:56 +02:00
abec6e5eb5
Fix 'branch' command to allow using '--new-package' option on packages that do not exist
2024-04-12 16:49:49 +02:00
ec363bb26c
Merge pull request #1525 from bmwiedemann/vrev
...
Allow setlinkrev to set a specific vrev
2024-03-24 21:52:47 +01:00
Bernhard M. Wiedemann
c8ee1c613b
Readd makeurl debug output
...
was lost in refactoring commit 3f14cef53a
yet it was very useful to discover API queries
2024-03-21 20:00:41 +01:00
ad1117f3a5
Allow setlinkrev to set a specific vrev
...
This helps mitigate OBS-305
and https://github.com/openSUSE/open-build-service/issues/15079
Co-authored-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
2024-03-21 15:36:00 +01:00
d497900ef7
Revert "Don't retry on 400 HTTP status code in core.server_diff()"
...
This reverts commit 80fc2bf7cb
.
2024-03-12 17:31:55 +01:00
aaae06c794
Merge pull request #1510 from dmach/fix-updatepacmetafromspec-incomplete-spec
...
Fix crash in 'updatepacmetafromspec' command when working with an incomplete spec
2024-03-11 09:47:40 +01:00
f7f9506f96
Fix crash in 'updatepacmetafromspec' command when working with an incomplete spec
2024-03-07 17:35:21 +01:00
c0c05319d0
Move removing control characters to output.sanitize_text()
2024-03-07 12:00:03 +01:00
866d178345
Move print_msg() to the 'osc.output' module
2024-03-05 16:45:52 +01:00
d768eff371
Migrate core.create_submit_request() to obs_api.Request
2024-03-04 15:00:12 +01:00
88f2faf181
Merge pull request #1495 from dmach/xmlmodel-migrate-from-show_project_meta-show_package_meta
...
Migrate more code from show_project_meta() and show_package_meta() to xml models
2024-02-26 09:39:15 +01:00
f164258fb6
Merge pull request #1494 from adrianschroeter/fix_linkpac_on_scmsync
...
Support package linking of packages from scmsync projects
2024-02-26 09:30:07 +01:00
f62b11ea86
Migrate core.show_package_disabled_repos() to obs_api.Package
2024-02-23 13:14:04 +01:00
f5b782edc8
Migrate core.Package.update_package_meta() to obs_api.Package
2024-02-23 10:30:15 +01:00
4a6f069a4c
Remove core.setDevelProject() in favor of core.set_devel_project()
2024-02-23 10:30:15 +01:00
537dca3c7f
Migrate core.get_repos_of_project() to obs_api.Project
2024-02-23 10:30:15 +01:00
0b1f98acb3
Migrate core.get_repositories_of_project() to obs_api.Project
2024-02-23 10:30:15 +01:00
d017a490a0
Migrate core.show_scmsync() to obs_api.{Package,Project}
2024-02-23 10:18:26 +01:00
af24f3c75a
Merge pull request #1349 from dmach/xmlmodel
...
Object wrappers for OBS XML
2024-02-23 10:15:05 +01:00
d4e698f874
Support package linking of packages from scmsync projects
...
It needs to remove the scmsync tag in package meta in that
case (when creating a new package meta based on source).
I didn't that global in replace_pkg_meta() on purpose since
this should be a case by case decision when it makes sense.
We could add this there via an option though.
There is another problem in the api that it delivers
package meta without title/description elements, but
it is not accepting it. This is submitted there
via a seperate pull request.
2024-02-22 17:17:15 +01:00
64760193ca
Merge pull request #1485 from dmach/xdg
...
Honor XDG_CONFIG_HOME and XDG_CACHE_HOME env vars
2024-02-22 11:01:24 +01:00
b03f5d3b86
Migrate core.set_devel_project() to obs_api.Package
2024-02-21 09:46:53 +01:00
00d2192bcd
Migrate core.show_devel_project() to obs_api.Package
2024-02-21 09:46:53 +01:00
dec4143e6c
Fix core.slash_split() to strip both leading and trailing slashes
2024-02-14 14:31:39 +01:00
8e7f8fd415
Honor XDG_CONFIG_HOME and XDG_CACHE_HOME env vars
2024-02-14 14:24:04 +01:00
cff6a0ca3a
Remove remaining string queries from makeurl() calls
2024-02-12 14:25:49 +01:00
556c97d7ee
Move xml_indent, xml_quote and xml_unquote to osc.util.xml module
2024-02-12 09:27:30 +01:00
ff31a5cd4b
Merge pull request #1479 from dmach/branch-scmsync
...
Error out when branching a scmsync package
2024-02-09 14:30:31 +01:00
0f8a8430fc
Remove all path quoting, rely on makeurl()
2024-02-09 13:26:37 +01:00
dcd147f52d
Always use dict query in makeurl()
2024-02-09 13:26:37 +01:00
3f14cef53a
Refactor makeurl(), deprecate query taking string or list arguments, drop osc_urlencode()
2024-02-09 13:26:37 +01:00
bce5be4661
Error out when branching a scmsync package
2024-02-07 13:52:58 +01:00
Dirk Müller
a0a7865ca1
Convert to using f-strings
2024-01-06 10:00:38 +01:00
Marco Strigl
138d5303e6
remove public route from osc
2023-11-22 14:33:06 +01:00
268424797a
Fix retrieving config values in core.vc_export_env()
2023-10-13 20:34:09 +02:00
d678095d89
Fix core.change_request_state_template() to always return a string
2023-10-10 16:32:50 +02:00
386c4e8b40
Fix testing revision for being empty
...
Revision 0 is a valid value, but conditions evaluate it as False along with None and "".
This change treats 0 as a proper revision.
2023-10-06 08:32:06 +02:00
0848aba7b9
add support for keep_packages_locked on request revoke
...
jsc#OBS-134
2023-09-28 14:50:20 +02:00
9361d78012
Fix 'request show' command to print superseded_by information
2023-09-14 14:40:49 +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
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
d857e5dbf8
print_buildlog: Remove control characters from build log before printing (CVE-2012-1095)
2023-08-15 10:15:09 +02:00
b36c2101ba
Merge pull request #1360 from dmach/edit-attribute
...
Make 'meta' command capable of editing attributes
2023-08-07 10:28:56 +02:00
56747274d3
Fix less pager by adding '-R' to LESS env
2023-08-01 13:51:33 +02:00
95998ef80d
Make 'meta' command capable of editing attributes
2023-07-31 14:48:43 +02:00
aae20248d7
Merge pull request #1344 from dmach/build-from-git
...
Support building directly from git
2023-07-31 08:41:46 +02:00
7943b55a6e
Add limited support of Git SCM to the 'build' command
2023-07-28 14:42:52 +02:00
71dc7a6808
Merge pull request #1367 from dmach/request-list-i-build-log
...
Add an interactive option to display build log in 'request list -i' command
2023-07-27 15:09:09 +02:00
99fb94eddf
Improve print_msg() and migrate some arbitrary prints to it
2023-07-27 10:16:08 +02:00