projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57e0fe7
)
Always use system libgit2
author
Ximin Luo
<infinity0@debian.org>
Thu, 7 Jun 2018 05:35:30 +0000
(11:05 +0530)
committer
Ximin Luo
<infinity0@debian.org>
Thu, 7 Jun 2018 05:35:30 +0000
(11:05 +0530)
Forwarded: not-needed
Gbp-Pq: Name 2001_use-system-libgit2.patch
vendor/libgit2-sys-0.7.1/build.rs
patch
|
blob
|
history
diff --git
a/vendor/libgit2-sys-0.7.1/build.rs
b/vendor/libgit2-sys-0.7.1/build.rs
index 845a85f1cb700ab7e74b91152c8694c8dc4d6321..786ac9ce9f0b2f51845d0c9ef3070f459b906473 100644
(file)
--- a/
vendor/libgit2-sys-0.7.1/build.rs
+++ b/
vendor/libgit2-sys-0.7.1/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();