Skip to content

Commit

Permalink
Pass along the --force flag to pacman if it was given to cpanp.
Browse files Browse the repository at this point in the history
  • Loading branch information
juster committed Jun 9, 2014
1 parent 437a2cb commit 24fa78c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/CPANPLUS/Dist/Arch.pm
Expand Up @@ -476,7 +476,7 @@ Package type must be 'bin' or 'src'};
}

#---INTERFACE METHOD---
# Purpose : Installs the package file (.pkg.tar.gz) using sudo and
# Purpose : Installs the package file (.pkg.tar.xz) using sudo and
# pacman.
# Comments : Called automatically on pre-requisite packages
#----------------------
Expand All @@ -501,8 +501,11 @@ END_ERROR

die "Package file $pkgfile_fqp was not found" if ( ! -f $pkgfile_fqp );

my @pacmancmd = ( 'pacman', '--noconfirm', '-U', $pkgfile_fqp,
( $Is_dependency ? '--asdeps' : '--asexplicit' ),
my @pacmancmd = ( 'pacman',
($opts{'force'} ? '--force' : ()),
'--noconfirm',
($Is_dependency ? '--asdeps' : '--asexplicit'),
'-U', $pkgfile_fqp,
);

# Make sure the user has access to install a package...
Expand Down

0 comments on commit 24fa78c

Please sign in to comment.