diff options
Diffstat (limited to 'updater.pl')
-rw-r--r-- | updater.pl | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/updater.pl b/updater.pl index f4bbfadb8117..46b47b7c689e 100644 --- a/updater.pl +++ b/updater.pl @@ -10,17 +10,20 @@ my $installer = ""; GetOptions("installer=s" => \$installer); -die "\033[1;31mNo AUR package available for this update.\033[0m" - unless $installer =~ /(OnlineFotoservice|Mein_CEWE_FOTOBUCH|Mon_LIVRE_PHOTO_CEWE)/; +unless ($installer =~ /(Atelier_Photo_Fnac|Mon_LIVRE_PHOTO_CEWE)/){ + print "\033[1;31mNo AUR package available for this update ('$installer').\033[0m" +}else{ -my $pkgName = $1 eq 'Mein_CEWE_FOTOBUCH' ? 'cewe-fotobuch' : 'cewe-fotoservice' : 'cewe-monlivrephoto'; + my $pkgName = $1 eq 'Atelier_Photo_Fnac' ? 'cewe-monlivrephoto'; -chdir('/tmp'); -system("wget https://aur.archlinux.org/cgit/aur.git/snapshot/$pkgName.tar.gz -O $pkgName.tar.gz"); -system("tar -xvf $pkgName.tar.gz"); + chdir('/tmp'); + system("wget https://aur.archlinux.org/cgit/aur.git/snapshot/$pkgName.tar.gz -O $pkgName.tar.gz"); + system("tar -xvf $pkgName.tar.gz"); -chdir($pkgName); -system("mv '$installer' ./"); -system('_UPDATING=1 makepkg --install --clean --skipchecksums'); + chdir($pkgName); + system("mv '$installer' ./"); + system('_UPDATING=1 makepkg --install --clean --skipchecksums'); +} print "\nNow you can close this window\n"; +my $input = <STDIN>; |