Skip to content

Commit

Permalink
- Load all the dependencies of trizen before performing -Su.
Browse files Browse the repository at this point in the history
If `perl` gets updated along with a Perl module that has some parts written in C, then the
module will fail to load later on, since `trizen` was executed with the older verison of `perl`.
Therefore, we load all the critical modules before performing `-Su`, to prevent a potential crash in the future. (fixes #206)
  • Loading branch information
trizen committed Jun 12, 2019
1 parent ad6c06a commit 41e62d7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions trizen
Original file line number Diff line number Diff line change
Expand Up @@ -2821,6 +2821,18 @@ if ($lconfig{S} or $lconfig{sync}) { # -S
}
}

# If `perl` gets updated along with a Perl module that has some parts written in C, then the
# module will fail to load later on, since `trizen` was executed with the older verison of `perl`.
# Therefore, we load all the critical modules here, to prevent a potential crash in the future. (fixes #206)
require JSON;
require Time::Piece;
require HTTP::Message;
require LWP::UserAgent; # also loads Scalar::Util
require LWP::Protocol::https;
require HTML::Entities;
require File::Copy;
require File::Basename;

my @aur_packages;
my @repo_packages;

Expand Down

0 comments on commit 41e62d7

Please sign in to comment.