summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/repository/fs/representation.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/repository/fs/representation.rs b/src/repository/fs/representation.rs
index 19c06f8..d348f7e 100644
--- a/src/repository/fs/representation.rs
+++ b/src/repository/fs/representation.rs
@@ -123,6 +123,10 @@ impl FileSystemRepresentation {
// Helper to check whether a tree contains pkg.toml files, recursively
fn toml_files_in_tree(hm: &HashMap<PathComponent, Element>) -> bool {
+ if let Some(Element::File(_)) = hm.get(&PathComponent::PkgToml) {
+ return true
+ }
+
for value in hm.values() {
match value {
Element::File(_) => return true,