Fix ownership issues with previous commit
This commit is contained in:
parent
6c62f15a41
commit
00e48a9f9a
@ -40,20 +40,20 @@ impl Database {
|
|||||||
// pulled in update, so swap it out
|
// pulled in update, so swap it out
|
||||||
let update = Update {
|
let update = Update {
|
||||||
name: name.clone(),
|
name: name.clone(),
|
||||||
version: remote_package.version,
|
version: remote_package.version.clone(),
|
||||||
url: repo.base_url.clone(),
|
url: repo.base_url.clone(),
|
||||||
};
|
};
|
||||||
updates.insert(name, update);
|
updates.insert(name.clone(), update);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// First time we've seen this update, so insert it
|
// First time we've seen this update, so insert it
|
||||||
// into our hashmap
|
// into our hashmap
|
||||||
let update = Update {
|
let update = Update {
|
||||||
name: name.clone(),
|
name: name.clone(),
|
||||||
version: remote_package.version,
|
version: remote_package.version.clone(),
|
||||||
url: repo.base_url,
|
url: repo.base_url.clone(),
|
||||||
};
|
};
|
||||||
updates.insert(name, update);
|
updates.insert(name.clone(), update);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ mod repository;
|
|||||||
mod version;
|
mod version;
|
||||||
|
|
||||||
pub use {
|
pub use {
|
||||||
db: Database,
|
db::Database,
|
||||||
hooks::Hooks,
|
hooks::Hooks,
|
||||||
item::Item,
|
item::Item,
|
||||||
package::{create_package, Dependency, Package, Specs},
|
package::{create_package, Dependency, Package, Specs},
|
||||||
|
Loading…
Reference in New Issue
Block a user