diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-12-28 12:57:14 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-12-28 12:57:14 +0000 |
commit | 999449b6bcb11aa15366c91cf9515cff6276c53b (patch) | |
tree | 1b7381e705073defe3c3588e867564a227b120e4 | |
parent | c798cccb6b32813001d083c387db4aba1a75550b (diff) |
allows src: urls to work better by using -F nolock during pkg builds.
Also turns off ftp package fetching, as noticed by bernd@
With this, src: urls should be mostly functional now.
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageRepository/Source.pm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository/Source.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository/Source.pm index 732f2a0b7d3..39e8708a7b9 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageRepository/Source.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageRepository/Source.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Source.pm,v 1.6 2007/06/16 09:29:37 espie Exp $ +# $OpenBSD: Source.pm,v 1.7 2007/12/28 12:57:13 espie Exp $ # # Copyright (c) 2003-2006 Marc Espie <espie@openbsd.org> # @@ -56,10 +56,7 @@ sub build_package my $pkgfile = `cd $dir && SUBDIR=$pkgpath ECHO_MSG=: $make show=PKGFILE`; chomp $pkgfile; if (! -f $pkgfile) { - # XXX - unlock_db(); - system "cd $dir && SUBDIR=$pkgpath $make package BULK=Yes"; - lock_db(0); + system "cd $dir && SUBDIR=$pkgpath $make package BULK=Yes PKGDB_LOCK='-F nolock' FETCH_PACKAGES=No"; } if (! -f $pkgfile) { return undef; |