readable error when !-d and a dependent package is needed
This commit is contained in:
parent
2197b40bec
commit
6dc3872b96
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
# $OpenBSD: check-newlib-depends,v 1.9 2005/03/26 11:52:58 espie Exp $
|
||||
# $OpenBSD: check-newlib-depends,v 1.10 2005/09/10 09:48:54 espie Exp $
|
||||
# Copyright (c) 2004 Marc Espie <espie@openbsd.org>
|
||||
#
|
||||
# Permission to use, copy, modify, and distribute this software for any
|
||||
@ -143,6 +143,12 @@ sub get_plist
|
||||
{
|
||||
my $pkgname = shift;
|
||||
|
||||
if (!defined $opt_d) {
|
||||
print "Error: can't solve dependency for $pkgname\n";
|
||||
print "Error: use -d directory to find it\n";
|
||||
return;
|
||||
}
|
||||
|
||||
my $location = "$opt_d/$pkgname.tgz";
|
||||
|
||||
my $true_package = OpenBSD::PackageLocator->find($pkgname);
|
||||
|
Loading…
Reference in New Issue
Block a user