Compare commits

...

4 Commits
v1.1 ... master

3 changed files with 9 additions and 7 deletions

View File

@ -35,10 +35,8 @@ clean:
doc: pacundo.1.gz
install: pacundo.1.gz
install -d $(PREFIX)/bin
install -m 755 pacundo.pl $(PREFIX)/bin/pacundo
install -d $(PREFIX)/share/man/man1
install -m 644 pacundo.1.gz $(PREFIX)/share/man/man1/
install -Dm755 pacundo.pl $(PREFIX)/bin/pacundo
install -Dm644 pacundo.1.gz $(PREFIX)/share/man/man1/
uninstall:
$(RM) $(PREFIX)/bin/pacundo

View File

@ -1,4 +1,4 @@
.TH PACUNDO "1" "April 2024" "pacundo 1.1" "User Commands"
.TH PACUNDO "1" "April 2024" "pacundo 1.1.1" "User Commands"
.SH "NAME"
pacundo - A time machine to roll back your ArchLinux machine to a working state.
.SH "SYNOPSIS"

View File

@ -29,7 +29,7 @@ use feature qw(signatures);
use Getopt::Std;
use File::ReadBackwards;
my $VERSION = '1.1';
my $VERSION = '1.1.1';
my $PROG_NAME = 'pacundo';
sub print_version() {
@ -195,7 +195,11 @@ sub find_local_pkg($pkgmgr, $pkg_name, $pkg_ver='') {
my $aur_dir;
if ($pkgmgr->{name} eq 'yay') {
$aur_dir = "$ENV{'XDG_CACHE_HOME'}/yay/$pkg_name";
if ($ENV{'XDG_CACHE_HOME'} ne '') {
$aur_dir = "$ENV{'XDG_CACHE_HOME'}/yay/$pkg_name";
} else {
$aur_dir = "$ENV{'HOME'}/.cache/yay/$pkg_name";
}
} else {
return '';
}