upd and patches
This commit is contained in:
@ -18,7 +18,10 @@ pub fn download(repo: &String, pkgname: &String) {
|
||||
}
|
||||
};
|
||||
|
||||
let src = crate::commands::get_aeropkg_base().join("src").join(pkgname);
|
||||
let pkgpath = &crate::commands::get_aeropkg_base().join(repo).join(pkgname);
|
||||
fs::create_dir_all(&pkgpath).ok();
|
||||
|
||||
let src = pkgpath.join("src");
|
||||
if src.exists() {
|
||||
let src_url = fs::read_to_string(src.join("aeropkg.download-url")).unwrap_or("".to_string());
|
||||
if url == src_url { return }
|
||||
@ -29,6 +32,7 @@ pub fn download(repo: &String, pkgname: &String) {
|
||||
|
||||
if url.ends_with(".git") || url.starts_with("git://") {
|
||||
let git_status = Command::new("git")
|
||||
.current_dir(&pkgpath)
|
||||
.arg("clone")
|
||||
.arg(&url)
|
||||
.arg(&src)
|
||||
|
||||
Reference in New Issue
Block a user