14a359a255
Make PullReqest.parse_id() more permissive by accepting trailing whitespaces
2025-12-12 14:10:28 +01:00
438700f290
Fix Manifest class to handle loading empty YAML files or strings
2025-12-02 10:10:56 +01:00
84ee65271d
Add gitea_api.GitDiffGenerator class for creating submodule diffs without a git checkout
2025-11-10 15:10:21 +01:00
7c97922db1
Add gitea_api.common.TemporaryDirectory class that supports 'delete' argument on python 3.6+
2025-11-10 15:06:02 +01:00
ad96f3926d
Extend gitea_api.PullRequest with methods that work with 'PR:' references
2025-11-10 15:06:02 +01:00
19888de1f1
Merge pull request #1974 from dmach/git-scm-store-check-parent-project-branch
...
Check that the git package has the same branch as the parent project
2025-11-04 16:01:38 +01:00
f94787b4ec
Warn if the git package doesn't have the same branch as the parent project
2025-11-04 15:47:33 +01:00
aa3cb2c71f
feat: add new function PullRequest.get_host_owner_repo_number
...
The existing `get_owner_repo_number` throws away the parsed host, which is
occasionally useful. Therefore we add a new method `get_host_owner_repo_number`
that also returns the full host (scheme + hostname + port) and keep the old
method for compatibility.
Also add tests.
2025-10-20 17:15:34 +02:00
14d42d252c
Derive package name from topdir if a package is part of a project checkout
2025-10-10 14:19:14 +02:00
84288258b0
Add gitea_api.Git.urljoin() static method
2025-10-02 08:48:42 +02:00
14d589694a
Be more permissive when loading parent project_store in GitStore
2025-09-25 10:05:42 +02:00
3792b55c53
Fix git store to check if all the required fields are present
2025-09-23 13:06:46 +02:00
910802d59c
Refactor GitStore
2025-09-23 13:06:46 +02:00
5c42e7d623
Support _manifest file in git store
2025-08-11 15:20:40 +02:00
d00e60d99e
Fix unit tests to use the new code path to run osc
2025-07-31 13:31:35 +02:00
9049e4164f
Fix osc.gitea_api.dt_sanitize() by replacing dateutil with datetime
2025-07-30 10:44:51 +02:00
666e9ab7c0
Move get_editor() and related functions from command-line module to gitea_api.common
2025-07-07 11:41:10 +02:00
d17c63c29a
Merge pull request #1861 from dmach/osc-improve-git-detection-git-osc-same-dir
...
Improve detection of git package when project git contains both .git and .osc
2025-07-07 11:22:45 +02:00
42024c2c91
Fix RequestWrongOrder output during tests
2025-07-07 08:13:20 +02:00
f25d970e01
Add obs_api.Request.search() method
2025-07-07 08:13:20 +02:00
4169445ee2
Improve detection of git package when project git contains both .git and .osc
2025-07-03 22:02:23 +02:00
59fe5e8cb9
Fix detection of gitstore
2025-06-25 14:31:53 +02:00
10f3ba264d
Merge pull request #1830 from dmach/updatepacmetafromspec-queryrecipe
...
Improve 'updatepacmetafromspec' command to expand rpm spec macros by calling queryrecipe to query the data
2025-06-24 13:13:32 +02:00
c4c95ea5d8
Improve 'updatepacmetafromspec' command to expand rpm spec macros by calling queryrecipe to query the data (bsc#1243722)
2025-06-23 20:48:14 +02:00
17e6504e36
Move yaml handling code to osc.util.yaml, add fallback to PyYaml
2025-06-19 11:37:10 +02:00
4df8ac5e9d
Fix remaining issues with environmental variables in unittests
2025-06-03 13:47:05 +02:00
b6f8c6026d
Fix git store when .git is a file with "gitdir: <path>" link
2025-05-22 20:57:52 +02:00
e2d890391e
Refactor gitea_api to use objects with properties instead of raw JSON data
2025-05-20 14:29:20 +02:00
f77a65de79
Fix handling env in tests for 'osc vc'
2025-05-12 08:50:57 +02:00
3ac715b40f
Fix how GitStore reads project from the parent directory
2025-05-12 08:50:57 +02:00
Andrii Nikitin
a9d5f8ca6d
Fix git-obs pr create with multistring EDITOR
2025-05-07 14:19:10 +02:00
292030dbb4
Add gitea_api.Git.urlparse() for parsing git urls
2025-04-02 10:12:02 +02:00
90897c4009
Support new 'X | None' union syntax in field types
2025-03-06 09:59:41 +01:00
8287354d48
Improve core.binary() by always considering data that contains \0 binary
2025-02-12 13:45:55 +01:00
a8106f3f66
Fix detecting binary files
2025-02-03 09:12:19 +01:00
93a851b41c
Merge pull request #1682 from dmach/xml-etree-extend-ParseError
...
Extend xml.etree.ElementTree.ParseError output with a snippet of broken XML
2025-01-07 13:08:02 +01:00
a5ef0573a1
Sync ScmsyncObsinfo with obs-scm-bridge
2025-01-07 10:40:35 +01:00
6fc5654aca
Extend xml.etree.ElementTree.ParseError output with a snippet of broken XML
2025-01-02 14:25:23 +01:00
79a1245db0
Fix handling SimpleFlag model
2024-11-29 15:44:17 +01:00
856277b63c
Fix store migration from 1.0 to 2.0 when there is a 'sources' file that would conflict with 'sources' directory
2024-11-05 10:07:06 +01:00
292052912c
Add test for extracting ar archive without long filenames
2024-08-27 11:28:44 +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
52f076636d
Make most of the fields in KeyinfoPubkey and KeyinfoSslcert models optional
...
The presence of the fields seems to be random and the only truly required field
is the actual public key/cert. Other fields are only for the information.
2024-07-04 14:24:52 +02:00
4d1651d038
Fix colorize() to avoid wrapping empty string into color escape sequences
2024-07-04 14:24:52 +02:00
b8e187cc70
Fix tests so they don't modify fixtures
2024-06-25 08:48:45 +02:00
5c3cca63c4
Run check_store_version() in obs_scm.Store and fix related code in Project and Package
2024-06-24 12:37:15 +02:00
661bc7757c
Use f-strings where possible
2024-06-18 10:26:36 +02:00
360a94c4a3
Fix config parser to throw an exception on duplicate sections or options
2024-06-03 08:21:17 +02:00
5cbd110a84
Forbid extracting files with absolute path from 'cpio' archives (boo#1122683)
...
Also fix and modernize the code, add tests.
2024-05-30 14:53:58 +02:00
d61b781976
Forbid extracting files with absolute path from 'ar' archives (boo#1122683)
...
Also fix and modernize the code, add tests.
2024-05-30 14:53:58 +02:00