• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agama-project / agama / 13699602539

06 Mar 2025 01:17PM UTC coverage: 72.497% (-0.2%) from 72.74%
13699602539

push

github

web-flow
feat: add support for some YaST-like URLs (#2118)

## Problem

Agama [Transfer's
API](https://github.com/agama-project/agama/blob/master/rust/agama-lib/src/utils/transfer.rs)
does not understand [YaST-specific
URLs](https://github.com/yast/yast-installation/blob/master/doc/url.md).

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:` and
`cd:`. Support for well-known URLs (e.g., `file:`, `http:`, `https:`,
`ftp:`, `nfs:`, etc.) is still implemented using CURL.

> [!WARNING]
> `agama download` now requires specifying a DESTINATION file (instead
of writing to stdout). Agama uses stdout to tell where it is searching.

## Testing

- Added a new unit test
- Tested manually

37 of 156 new or added lines in 8 files covered. (23.72%)

1 existing line in 1 file now uncovered.

20015 of 27608 relevant lines covered (72.5%)

42.48 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

52.88
/rust/agama-lib/src/scripts/model.rs


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc