3 Commits

Author SHA1 Message Date
17eb2b9ad1 Bump to v1.1.1 2024-06-16 18:16:11 +02:00
3eb87b5907 Add option for fallback yay cache directory. 2024-05-27 13:58:07 +02:00
c78f9a36d9 Bump version to v1.1 2024-05-25 18:39:51 +02:00
2 changed files with 7 additions and 3 deletions

View File

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

View File

@ -29,7 +29,7 @@ use feature qw(signatures);
use Getopt::Std; use Getopt::Std;
use File::ReadBackwards; use File::ReadBackwards;
my $VERSION = '1.0.1'; my $VERSION = '1.1.1';
my $PROG_NAME = 'pacundo'; my $PROG_NAME = 'pacundo';
sub print_version() { sub print_version() {
@ -195,7 +195,11 @@ sub find_local_pkg($pkgmgr, $pkg_name, $pkg_ver='') {
my $aur_dir; my $aur_dir;
if ($pkgmgr->{name} eq 'yay') { 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 { } else {
return ''; return '';
} }