my @queue = ();
my @top_order = ();
my %ref_build_complete = ();
+ my $pkg_number = 0;
for my $pack (sort keys %pkgddeps) {
+ $pkg_number++;
$ref_build_complete{$pack} = 0;
my $pack_in_degree = 0;
if (defined $pkgddeps{$pack}) {
}
}
}
- return @top_order;
+ if($pkg_number == @top_order) {
+ info("there is no circle in $pkg_number packages");
+ return @top_order;
+ }
+ else {
+ info("circle found in $pkg_number packages, exit...");
+ exit 1;
+ }
}
#---------------------------------------------------------------------
}
}
- if (check_circle() == 1) {
- info("circle found, exit...");
- exit 1;
- }
+ #if (check_circle() == 1) {
+ # info("circle found, exit...");
+ # exit 1;
+ #}
# Expand dependency using direct dependency dict
# pkgddeps => pkgdeps
}
-if (check_circle() == 1) {
- info("circle found, exit...");
- exit 1;
-}
+#if (check_circle() == 1) {
+# info("circle found, exit...");
+# exit 1;
+#}
if ($debug) {
my $pkg;