mirror of
https://git.proxmox.com/git/proxmox-perl-rs
synced 2025-05-29 08:12:41 +00:00
adapt to proxmox-apt changes
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
8d143f8f9e
commit
03bba92a8b
@ -104,7 +104,7 @@ pub mod export {
|
||||
);
|
||||
}
|
||||
|
||||
if let Some(file) = files.iter_mut().find(|file| file.path == path) {
|
||||
if let Some(file) = files.iter_mut().find(|file| file.path.as_ref() == Some(&path)) {
|
||||
file.repositories.push(repo);
|
||||
|
||||
file.write()?;
|
||||
@ -145,7 +145,7 @@ pub mod export {
|
||||
bail!("unable to parse file {} - {}", error.path, error.error);
|
||||
}
|
||||
|
||||
if let Some(file) = files.iter_mut().find(|file| file.path == path) {
|
||||
if let Some(file) = files.iter_mut().find(|file| file.path.as_ref() == Some(&path.to_string())) {
|
||||
if let Some(repo) = file.repositories.get_mut(index) {
|
||||
if let Some(enabled) = options.enabled {
|
||||
repo.set_enabled(enabled);
|
||||
|
Loading…
Reference in New Issue
Block a user