summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 9712d528..e1b855ae 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1945,6 +1945,9 @@ sub search_packages {
sub resolve_dependencies {
my ($urpm, $state, $requested, %options) = @_;
+ #- needed for both parallel mode or simple mode.
+ require URPM::Resolve;
+
if ($options{install_src}) {
#- only src will be installed, so only update $state->{selected} according
#- to src status of files.
@@ -1967,8 +1970,6 @@ sub resolve_dependencies {
} else {
my $db;
- require URPM::Resolve;
-
if ($options{rpmdb}) {
$db = new URPM;
$db->parse_synthesis($options{rpmdb});