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
c56d9fcca6
Add an interactive option to display build log in 'request list -i' command
...
Also show rpmlint logs in pager.
2023-07-20 13:02:00 +02:00
Dominik Heidler
42d778be04
Add highlighting for "osc diff" and similar commands
2023-07-14 10:00:15 +02:00
445c93300b
Fix local service execution of scmsync packages
...
read _service file even when it is not tracked. This is the case
in scmsync case.
I am not aware of a situation where it would break, when the
local _service file exists but is not tracked yet.
osc#1350
2023-07-04 15:54:30 +02:00
afcf76aa44
Merge pull request #1340 from adrianschroeter/fix_crash_no_link
...
Fix crash when submiting a package which has no _link
2023-06-19 08:50:10 +02:00
c3954ff4fd
Fix printing utf-8 characters to stdout
...
When utf-8 encoded text is transferred over network and read in chunks,
if frequently happens that a character gets split between 2 chunks.
Decoding such chunks fails on invalid multibyte sequence.
The solution is to forward the bytes to stdout's buffer
and make the utf-8 decoding "someone else's problem".
2023-06-16 09:03:49 +02:00
ff66c1e4f7
Fix crash when submiting a SCM package which has no _link
2023-06-14 12:30:27 +02:00
Fabian Vogt
70135090cc
Add req_states parameter to osc.core.get_review_list
...
Keep the original behaviour by default, but allow other callers to also
request reviews on e.g. declined SRs.
2023-05-12 11:02:51 +02:00
dc50e6c981
Merge pull request #1319 from dmach/review-list-state
...
Consider only open requests when listing requests with a given review state
2023-05-09 16:54:28 +02:00
00decd25d1
Consider only open requests when listing requests with a given review state
2023-05-09 16:12:21 +02:00
c8f2ae1ae6
Fix core.xmlindent() to work with ElementTree objects
2023-05-09 08:42:53 +02:00
b789cdfed6
Backup edited messages and notify user about them when osc errors out
...
The messages are kept in ~/.cache/osc/edited-messages for 1 day.
2023-05-04 11:00:07 +02:00
80fc2bf7cb
Don't retry on 400 HTTP status code in core.server_diff()
2023-04-28 14:54:51 +02:00
49cfd020fd
Fix 'diff' command to support diffing selected files only
2023-04-28 14:38:43 +02:00
04b6fb137a
Document 'popt' attribute in the _link template
2023-04-26 09:33:04 +02:00
Martin Liska
a01d2a43df
clean-up .old folder if an exception happens
...
Fixes : openSUSE/obs-build#920
2023-04-14 13:53:32 +02:00
d7af821ec1
rq list: Restore 'include_request_from_project' conf option functionality
2023-03-31 14:01:55 +02:00
4f9fb9f1ac
core.get_request_list: Remove deprecation warning
...
It turned out that get_request_list() and get_request_collection()
are not interchangeable and we need both for different use cases.
get_request_collection() was designed mainly for the 'osc my' command,
while get_request_list() should be used in a generic use case
2023-03-13 13:07:20 +01:00
8df8ee63aa
Merge pull request #1265 from andreas-schwab/master
...
Pass --force down to delete_package
2023-03-09 13:14:12 +01:00
e4723f7f74
Replace arbitrary XML escaping code with xml_escape()
2023-03-06 10:12:59 +01:00
5b67164a9c
Pass --force down to delete_package
2023-02-16 10:35:31 +01:00
815009f647
core.ReviewState: Add __repr__() method
2023-02-14 16:24:20 +01:00
e132d093e7
core.Action: Add __repr__() method
2023-02-14 16:24:20 +01:00
95be11130e
core.Action: Add src_pkg_object and tgt_pkg_object properties providing object wrappers to file lists
2023-02-14 16:24:20 +01:00
f5da27ad24
core.Action: Remember apiurl
2023-02-14 15:57:15 +01:00
770217bb8d
core.Request: Add issues property that loads issues on demand
2023-02-14 15:57:15 +01:00
27c3159fdb
core.Request: Add id property that is a shortcut to the reqid attribute
2023-02-14 15:57:15 +01:00
17e25776a2
core.Request: Add from_api() class method
2023-02-14 15:57:15 +01:00
09ad87c865
core.Request: Store apiurl the object was initialized from
2023-02-14 15:57:15 +01:00
1d96c6eb2a
checkout_package: Use pathlib.Path
...
Modify it to use pathlib.Path along with its callers. Some str(path) was
necessary to avoid having a large changeset.
It addresses #1258 and continues the work started in
bac162a712
.
2023-02-08 11:46:16 +01:00
4c7cdaec19
rq list: Fix passing values of the --type option
2023-02-03 09:57:51 +01:00
5810e09aab
Revert "Do not list declined requests by default"
...
This reverts commit 2892f1bb11
.
This reverts commit 9073b1a1d2
.
The declined requests are still on maintainer's TODO list,
they should be either superseded with another request or revoked.
2023-02-02 14:11:04 +01:00
dcc913dd5a
Merge pull request #1229 from Vogtinator/fixlist
...
Support withfullhistory in osc.core.get_request_list again
2023-01-26 14:56:58 +01:00
208dbdf6d1
copypac: Fix downgrading a package to an old revision
2023-01-26 10:34:31 +01:00
6bd2c6eaf1
mv: Fix regression
...
Moved Package.todo handling in one place.
Fixed a situation when path to a file that doesn't exist is passed to Package
2023-01-26 10:11:54 +01:00
Fabian Vogt
3c200caf50
Support withfullhistory in osc.core.get_request_list again
2023-01-25 15:41:00 +01:00
Fabian Vogt
732ff678e7
Fix osc.get_request_list ignoring the req_type parameter
2023-01-25 11:38:08 +01:00
fdd2c3a8f0
Fix creating a Package object by providing multiple files on the command line
2023-01-20 16:52:11 +01:00
2ee52591a5
Fix arguments of PackageInternalError
2023-01-20 16:16:23 +01:00
7f885ac6b2
Fix pylint error: Using variable 'fd' before assignment
2023-01-20 16:16:23 +01:00
6d01df35e6
Use distro module to detect distro on all python versions
...
Also, add a related Recommends to to the spec file
2023-01-20 16:16:23 +01:00
lethliel
18cdec2554
use correct variable prj instead of project
2023-01-20 11:48:52 +01:00
Adrian Schröter
a292e2b6ab
fix manual run of source service
...
A service explicit called via singlerun could get skipped otherwise,
if the service is defined with a different mode.
eg. running
osc service mr download_files
to update and merge files after a version update, but the project has a
global download_files service configured for validation.
2023-01-12 14:05:20 +01:00
c639dfd89c
lock: Move code to core.py/lock(), improve CLI handling
2023-01-12 10:49:43 +01:00
5d31fc1486
rdelete: Migrate to pop_project_package_from_args()
2023-01-12 10:49:35 +01:00
55fd77650d
copypac: Migrate to pop_project_package_targetproject_targetpackage_from_args()
2023-01-12 10:47:46 +01:00
fd851bbe83
aggregatepac: Migrate to pop_project_package_targetproject_targetpackage_from_args()
2023-01-12 10:47:46 +01:00