diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-02-12 12:17:51 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-02-12 21:46:28 +0100 |
commit | cf55cb0d8e61337bbfdf261eb4262a3c799db8ae (patch) | |
tree | 06e1eeb05bd2d57b71b28e4bde397c6fd2d12065 /sboinstall | |
parent | 1b1385ad465d1c01f2391b4e92049dc84f8c863b (diff) | |
download | sbotools2-cf55cb0d8e61337bbfdf261eb4262a3c799db8ae.tar.xz |
Don't try to install or upgrade slackware packages
Diffstat (limited to 'sboinstall')
-rwxr-xr-x | sboinstall | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -93,9 +93,18 @@ if ($no_reqs or $non_int) { } } +# get lists of installed packages and perl modules from CPAN +my $inst_names = get_inst_names(get_installed_packages 'ALL'); +my $pms = get_installed_cpans(); +s/::/-/g for @$pms; +my %inst_names; +$inst_names{$_} = 1 for @$inst_names; + # populate %locations and sanity check %locations = get_sbo_locations($build_queue); for my $sbo (@$build_queue) { + next if $inst_names{$sbo}; + usage_error("Unable to locate $sbo in the SlackBuilds.org tree.") unless $locations{$sbo}; if ($compat32) { @@ -104,17 +113,9 @@ for my $sbo (@$build_queue) { } } -# get lists of installed packages and perl modules from CPAN -my $inst_names = get_inst_names(get_installed_packages 'ALL'); -my $pms = get_installed_cpans(); -s/::/-/g for @$pms; - # check for already-installeds and prompt for the rest my (@temp_queue, %commands, %options); my $added = ' added to install queue.'; -my %inst_names; -$inst_names{$_} = 1 for @$inst_names; - FIRST: for my $sbo (@$build_queue) { my $name = $compat32 ? "$sbo-compat32" : $sbo; |