Skip to content

Commit

Permalink
- Fixed a minor issue in read_local_desc_file().
Browse files Browse the repository at this point in the history
Always read the package version in strict mode.
  • Loading branch information
trizen committed Jun 22, 2020
1 parent 9af7560 commit 41ee2bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions trizen
Original file line number Diff line number Diff line change
Expand Up @@ -1829,15 +1829,15 @@ sub install_package ($pkg) {

if ($already_installed{lc $name} or (defined($local_version) ? defined($version) ? $is_up_to_date : 1 : 0)) {
if ($lconfig{devel} and is_vcs_package($name) and is_vcs_package_ood($name)) {
msg(":: Dependency <<$pkgname>> seems to be {!out-of-date!} -- updating") if $lconfig{debug};
msg(":: Dependency <<$name>> seems to be {!out-of-date!} -- updating") if $lconfig{debug};
install_dependency($name) || next;
}
else {
msg(":: Dependency <<$pkgname>> is already installed -- skipping") if $lconfig{debug};
msg(":: Dependency <<$name>> is already installed -- skipping") if $lconfig{debug};
}
}
elsif (is_available_in_pacman_repo($pkgname)) {
msg(":: Dependency <<$pkgname>> is available in pacman's repository -- skipping") if $lconfig{debug};
msg(":: Dependency <<$name>> is available in pacman's repository -- skipping") if $lconfig{debug};
}
else {

Expand Down Expand Up @@ -2220,7 +2220,7 @@ sub list_aur_maintainer_packages ($maintainer) {

sub read_local_desc_file ($pkgname, $version = undef) {

$version //= package_is_installed($pkgname, 0) // return;
$version //= package_is_installed($pkgname) // return;

my $desc_file = catfile($lconfig{pacman_local_dir}, "$pkgname-$version", 'desc');

Expand Down

0 comments on commit 41ee2bb

Please sign in to comment.