projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0bff54
)
Always use system libgit2
author
Ximin Luo
<infinity0@debian.org>
Sun, 12 Aug 2018 07:15:23 +0000
(12:45 +0530)
committer
Ximin Luo
<infinity0@debian.org>
Sun, 12 Aug 2018 07:15:23 +0000
(12:45 +0530)
Forwarded: not-needed
Gbp-Pq: Name 2001_use-system-libgit2.patch
vendor/libgit2-sys-0.7.6/build.rs
patch
|
blob
|
history
diff --git
a/vendor/libgit2-sys-0.7.6/build.rs
b/vendor/libgit2-sys-0.7.6/build.rs
index 1e92dbcdc6b4a8552860082d587584b7924886a8..ac8278a75f8b3b1de21d0ef85b1fa9f52b8a1fc4 100644
(file)
--- a/
vendor/libgit2-sys-0.7.6/build.rs
+++ b/
vendor/libgit2-sys-0.7.6/build.rs
@@
-31,12
+31,11
@@
fn main() {
}
let has_pkgconfig = Command::new("pkg-config").output().is_ok();
- if env::var("LIBGIT2_SYS_USE_PKG_CONFIG").is_ok() {
- if pkg_config::find_library("libgit2").is_ok() {
- return
- }
+ if pkg_config::find_library("libgit2").is_ok() {
+ return
}
+
if !Path::new("libgit2/.git").exists() {
let _ = Command::new("git").args(&["submodule", "update", "--init"])
.status();