0ce3c4afe7
Merge pull request #1664 from dmach/fix-log-p-M
...
Fix 'log' command to work correctly with --meta --patch options
2024-11-29 16:46:44 +01:00
6d91083413
Move running obs_scm_bridge into run_obs_scm_bridge() function
2024-11-29 16:36:48 +01:00
aa9353f6b5
Mute pylint errors in show_package_disabled_repos() that are false-positives
2024-11-29 16:24:33 +01:00
6989fb8b6f
Fix another bytes/unicode issues in core.link_pac() by replacing ElementTree code with XML models
2024-11-29 15:49:20 +01:00
5c483fadab
Fix traceback in 'linkpac --disable-build'
2024-11-25 08:52:58 +01:00
d8d181ca25
Fix 'log' command to work correctly with --meta --patch options
2024-11-14 13:38:31 +01:00
183a23ccc9
Merge pull request #1660 from dmach/add-request-action-source-repository
...
Extend RequestActionSource with 'repository' attribute
2024-11-12 09:21:27 +01:00
0638bd08cf
Avoid printing urlquoted file names in 'getbinaries' command
2024-11-11 16:56:06 +01:00
0b0bff4976
Extend RequestActionSource with 'repository' attribute
...
It is a private patch/extension now, to be upstreamed soon.
2024-11-11 13:40:39 +01:00
f4298b8ed7
Update osc/core.py
...
Co-authored-by: Dirk Mueller <dmueller@suse.com>
2024-11-08 08:30:21 +01:00
8dff7f58d7
checkout: allow to checkout obs imported sources of scmsync sources
...
This allows to skip the check of obs-scm-bridge and checks out what
is stored in OBS src server.
Note: This is not necessarly the same representation as in git
(.obscpio instead of directories or sub modules).
Also no modification can be committed.
So this is only intended for people who understand the current
internal implementation of the source storage. There is no
guarantee that this won't change.
Checkout of entire project git is not working with this switch, as
the packagelist of osc is empty. It may also make no sense to do
this as it will not perform for large projects.
2024-11-08 08:30:21 +01:00
79bba89bdc
get_prj_results: skip non-status elements in prj results
2024-10-14 13:24:00 +02:00
5172002728
Refactor code handling _scmsync.obsinfo to obs_api.scmsync_obsinfo.ScmsyncObsinfo class
2024-10-08 09:42:02 +02:00
56b8aa6b92
Fix revision'd checkout of scmsync package
...
When specifing a revision to a checkout we need to transfer the
information to the bridge to do the right checkout. We also need
to take the former git url in case it has changed meanwhile.
2024-10-04 14:38:42 +02:00
1fc581325f
Merge pull request #1625 from adrianschroeter/copypac_scmsync
...
Support copy of scmsync packages
2024-10-02 14:28:32 +02:00
f0292dd2be
Support copy of scmsync packages
...
There are two ways, either copy the scmsync definition or drop it
when creating a new package meta.
If we keep it, we must not ask OBS to copy sources, it is syncing it
anyway.
We could add another option to skip the scmsync tag copy, but we keep
it as default, because we don't want to give a different view of the
the sources to the user. The client side copy is doing this.
2024-10-02 13:39:11 +02:00
625c4a70d4
Use findtext() instead of find().text
2024-09-11 13:31:41 +02:00
e958ce4328
Merge pull request #1608 from dmach/fix-arch_list-in-get_repos_of_project
...
Fix iterating through arch_list in core.get_repos_of_project()
2024-08-20 10:44:28 +02:00
70839d1d40
Fix iterating through arch_list in core.get_repos_of_project()
2024-08-15 08:38:49 +02:00
a887ade78f
Fix possibility to overwrite special files in .osc (CVE-2024-22034 boo#1225911)
...
Source files are now stored in the 'sources' subdirectory which prevents
name collisons. This requires changing version of '.osc' store to 2.0.
2024-07-29 13:24:13 +02:00
c34d994041
Provide default values for kwargs.get/pop
...
Otherwise the function fails if the keys in question are not in kwargs
2024-07-02 17:28:14 +02:00
7cd9635537
Fix 'linkpac' command crash when used with '--disable-build' or '--disable-publish' option
2024-07-01 09:31:14 +02:00
Sascha Grunert
e43477921c
Add results --fail-on-error/-F
flag
...
This allows to exit with `1` in case any build fails to provide feedback
to end-user scripts.
Refers to: https://github.com/kubernetes/release/issues/3632
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-06-20 09:56:35 +02:00
e1b866d5a7
Change 'results' command so the normal and multibuild packages have the same output
2024-06-18 15:55:17 +02:00
673907ea9f
Fix core.get_package_results() to obey 'multibuild_packages' argument
2024-06-18 15:55:17 +02:00
e2f164336d
osc results: Add support for --format for default text mode
2024-06-18 15:55:17 +02:00
Bernhard M. Wiedemann
29d44d540b
Add info for projects
...
Without this change, `osc info` in a project checkout dir returned
Directory '.' is not an OBS SCM working copy of a package
2024-06-11 11:36:42 +02:00
a3ed68508b
Remove no longer valid warning from core.unpack_srcrpm()
...
Shell injection is not possible with Popen() which has shell=False as a default.
2024-05-28 09:04:56 +02:00
9fd02ec493
Merge pull request #1540 from dmach/fix-log-patch-direction
...
Fix patch direction in 'log' command
2024-04-22 09:36:02 +02:00
da41f0fe07
Fix patch direction in 'log' command
2024-04-22 09:07:36 +02:00
6f653511ca
Fix crash when removing 'scmsync' element from dst package meta in 'linkpac' command
2024-04-19 14:01:08 +02:00
1e64187151
Fix crash when reading dst package meta in 'linkpac' command
2024-04-19 14:00:34 +02:00
7bbc147605
Improve 'updatepacmetafromspec' command to expand rpm spec macros by calling rpmspec to query the data
2024-04-18 12:09:36 +02:00
8ee02dd098
Improve 'log' command: produce proper CSV and XML outputs, add -p/--patch option for the text output
2024-04-17 10:57:59 +02:00
861a362622
Move run_pager() and get_default_pager() from 'core' to 'output' module
2024-04-17 10:57:59 +02:00
281f59c842
Move core.Package to obs_scm.Package
2024-04-15 16:48:03 +02:00
45ea1b698e
Move core.Project to obs_scm.Project
2024-04-15 16:48:03 +02:00
59f530c793
Move functions manipulating store from core to obs_scm.store
2024-04-15 16:48:03 +02:00
c8999c9b33
Move core.Linkinfo to obs_scm.Linkinfo
2024-04-15 14:08:38 +02:00
7d05d74456
Move core.Serviceinfo to obs_scm.Serviceinfo
2024-04-15 14:06:41 +02:00
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 3f14cef53a853296d7f60bf7b14eb86615842cf9
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 80fc2bf7cbfda83b1a6ba22fef82576f577ec46a.
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