Commit 8efbf0b7 authored by Rémy Oudompheng's avatar Rémy Oudompheng
Browse files

Prettier error message when running "update" on unknown package.

parent ad6d25e4
......@@ -477,8 +477,12 @@ sub run_installsrc {
sub run_update {
foreach (@_) {
my $tlpkg = $tlpdb->get_package($_);
my $pkgrev = $tlpkg->revision;
my $tlpkg = $tlpdb->get_package($_);
if (! $tlpkg) {
warning "$_ is unknown" ;
next ;
}
my $pkgrev = $tlpkg->revision;
if ( $locallyinstalledpkg_versions{$_} ) {
echo "$_ is already installed with texlive-local-$_";
if ($locallyinstalledpkg_versions{$_} == $pkgrev) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment