]> git.lizzy.rs Git - rust.git/commit
rustpkg: Search for packages correctly when using the rust_path_hack
authorTim Chevalier <chevalier@alum.wellesley.edu>
Tue, 24 Sep 2013 19:10:44 +0000 (12:10 -0700)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Wed, 25 Sep 2013 18:12:24 +0000 (11:12 -0700)
commit667adad26f9cc1cfa4eeba8aee15035da7544f8c
treee76fcb7c9bf1a09994fabb3c7be62609dc2bd95b
parent22654165c697cac912159daedbfb731fbc7c175d
rustpkg: Search for packages correctly when using the rust_path_hack

Previously, any package would match any other package ID when searching
using the rust_path_hack, so long as the directory had one or more crate
files in it. Now, rustpkg checks that the parent directory matches the
package ID.

Closes #9273
src/librustpkg/package_source.rs
src/librustpkg/path_util.rs
src/librustpkg/tests.rs
src/librustpkg/util.rs
src/libstd/path.rs