Update module load order. Add vstags to gitignore

This commit is contained in:
Tracey Clark 2024-02-24 22:08:42 -06:00
parent 0aa2de3433
commit 4203cc9ef3
2 changed files with 15 additions and 14 deletions

2
.gitignore vendored
View file

@ -8,6 +8,7 @@
# no backup files
*~
*.vscode
*.vstags
**.kate-swp
# Go binaries
common/Go/yabi/yabi
@ -23,3 +24,4 @@ infrastructure-tooling
# solus image symlink or clone
solus-image-*

View file

@ -3,24 +3,17 @@
# ABSTRACT: Find and return all unique package names in input file with highest version string
# PODNAME: get_unique_updates.pl
use Modern::Perl;
use FindBin;
use lib "$FindBin::RealBin/lib";
use GetUniqueLines;
use Getopt::Long;
use Pod::Usage;
BEGIN {
# First, check if all the required modules have
# been installed inthe system this script will run on.
my @import_modules = (
'FindBin',
'Modern::Perl',
'Getopt::Long',
'Pod::Usage',
'ExtUtils::Installed',
'ExtUtils::Installed'
);
for my $module ( @import_modules ) {
@ -29,16 +22,22 @@ BEGIN {
# problems finding module
# say "Cant find $module";
print qq{
$module does not seem to be installed in this system. Please install the module and try again.\n
First install cpanm with
Perl module $module does not seem to be installed in this system. Please install it and try again.\n
First install cpanm with
curl -L https://cpanmin.us | perl - --sudo App::cpanminus\n
Then install the missing module like so:
sudo cpanm $module};
Then install the missing module like so:
sudo cpanm $module
};
exit 1;
}
}
}
use Modern::Perl;
use GetUniqueLines;
use Getopt::Long;
use Pod::Usage;
my $successful_parse = GetOptions(
'help|?' => \my $help,
man => \my $man,