summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2002-06-21 12:05:52 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2002-06-21 12:05:52 +0000
commit01b22fe9780413cbd6e6b98d7a47b9481a769ee2 (patch)
tree98cdba64efbd6b3d7b2eca3d66d28cb87ffba662
parent236efdec459286f5979139093298662c9754aa41 (diff)
downloadMPC-01b22fe9780413cbd6e6b98d7a47b9481a769ee2.tar.gz
Fix dependencies when project is created in the current directory
-rw-r--r--modules/WorkspaceCreator.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/WorkspaceCreator.pm b/modules/WorkspaceCreator.pm
index e9f94654..318bce32 100644
--- a/modules/WorkspaceCreator.pm
+++ b/modules/WorkspaceCreator.pm
@@ -308,7 +308,10 @@ sub sort_dependencies {
my(%prepend) = ();
foreach my $project (@list) {
- $prepend{basename($project)} = dirname($project);
+ my($dname) = dirname($project);
+ if ($dname ne ".") {
+ $prepend{basename($project)} = dirname($project);
+ }
}
## Put the projects in the order specified
@@ -317,7 +320,7 @@ sub sort_dependencies {
my($project) = $list[$i];
my($pi) = $$pjs{$project};
my($name, $deps) = @$pi;
-
+
if ($deps ne "") {
my($darr) = $self->create_array($deps);
my($moved) = 0;