feat: add support for some YaST-like URLs#2118
Merged
imobachgs merged 33 commits intoafter-release-beta2from Mar 6, 2025
Merged
feat: add support for some YaST-like URLs#2118imobachgs merged 33 commits intoafter-release-beta2from
imobachgs merged 33 commits intoafter-release-beta2from
Conversation
Temporarily disable signature checking for dir:// because with the new product composer it is not possible to sign the repositories yet. It will be fixed in the future and we should remove this code then. See #2092 for further information. ## Testing * Add a unit test. * Manually tested.
Resync patterns list for SLES / SLES_SAP 16
## Problem QA tests of `agama profile import` fail because we did not package the storage part of the schema - https://bugzilla.suse.com/show_bug.cgi?id=1238367#c13 ## Solution 1. Package that file. 2. and remove the dangling reference to `guided` ## Testing - *Added a new unit test* - *Tested manually* ## Screenshots *If the fix affects the UI attach some screenshots here.*
This reverts commit 72f92b3.
This reverts commit 9198d6a.
Once the problem with the produce composer is fixed (see #2092), it is time to enable the signature checking again for `dir://` repositories.
jreidinger
reviewed
Mar 6, 2025
jreidinger
reviewed
Mar 6, 2025
jreidinger
reviewed
Mar 6, 2025
jreidinger
reviewed
Mar 6, 2025
jreidinger
reviewed
Mar 6, 2025
| let source = mount_point.join(&file_name); | ||
| let result = Self::copy_file(source, writer); | ||
|
|
||
| if !file_system.is_mounted() { |
Contributor
There was a problem hiding this comment.
this basically means that even if previously file system was already mounted, it will be unmounted here, which can be surprising and buggy. What about using closure like guarantee for mount that will handle it like
let file_name = file_name.strip_prefix("/").unwrap_or(file_name);
let source = mount_point.join(&file_name);
let result = file_system.ensure_mounted(&mount_point, || Self::copy_file(source, writer))
Contributor
Author
There was a problem hiding this comment.
No, it will not umount the file system. The is_mounted() retains the original value, so there is no danger.
jreidinger
reviewed
Mar 6, 2025
jreidinger
reviewed
Mar 6, 2025
jreidinger
reviewed
Mar 6, 2025
jreidinger
reviewed
Mar 6, 2025
| "--path", | ||
| ]) | ||
| .output() | ||
| .unwrap(); |
Contributor
There was a problem hiding this comment.
this deserve at least todo for failures to report it more nicely.
jreidinger
reviewed
Mar 6, 2025
jreidinger
reviewed
Mar 6, 2025
jreidinger
reviewed
Mar 6, 2025
jreidinger
approved these changes
Mar 6, 2025
jreidinger
approved these changes
Mar 6, 2025
Pull Request Test Coverage Report for Build 13699080004Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Merged
imobachgs
added a commit
that referenced
this pull request
Mar 27, 2025
Prepare for releasing Agama 13: - #2041 - #2074 - #2088 - #2089 - #2094 - #2097 - #2098 - #2100 - #2101 - #2104 - #2106 - #2107 - #2108 - #2113 - #2115 - #2116 - #2117 - #2118 - #2120 - #2121 - #2122 - #2123 - #2124 - #2125 - #2126 - #2128 - #2132 - #2135 - #2136 - #2137 - #2139 - #2142 - #2145 - #2146 - #2147 - #2148 - #2151 - #2153 - #2155 - #2156 - #2157 - #2158 - #2159 - #2160 - #2161 - #2163 - #2165 - #2172 - #2174 - #2177 - #2179 - #2180 - #2181 - #2182 - #2183 - #2184 - #2186 - #2187 - #2188 - #2191 - #2192 - #2193 - #2195 - #2197 - #2198 - #2199 - #2200 - #2201 - #2203 - #2204 - #2205 - #2206 - #2207 - #2209 - #2212 - #2213 - #2214 - #2215 - #2216
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Agama Transfer's API does not understand YaST-specific URLs.
It is impossible to handle URLs like
usb://OEMDRV/autoinst.xml,device:///autoinst.xml, etc.Note
It might not cover 100% of the old API cases, but we are working towards that.
Solution
This PR aims to add partial support for these URLs. The following schemes are supported:
device:,usb:,label:,HD:,DVD:andcd:. Support for well-known URLs (e.g.,file:,http:,https:,ftp:,nfs:, etc.) is still implemented using CURL.Warning
agama downloadnow requires specifying a DESTINATION file (instead of writing to stdout). Agama uses stdout to tell where it is searching.Testing