pkgdb: update copyright year, shorter conditional.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2008-2012 Juan Romero Pardines.
|
* Copyright (c) 2012 Juan Romero Pardines.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -64,8 +64,7 @@ xbps_pkgdb_init(struct xbps_handle *xhp)
|
|||||||
if (xhp->pkgdb != NULL)
|
if (xhp->pkgdb != NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
rv = xbps_pkgdb_update(xhp, false);
|
if ((rv = xbps_pkgdb_update(xhp, false)) != 0) {
|
||||||
if (rv != 0) {
|
|
||||||
if (rv != ENOENT)
|
if (rv != ENOENT)
|
||||||
xbps_dbg_printf("[pkgdb] cannot internalize "
|
xbps_dbg_printf("[pkgdb] cannot internalize "
|
||||||
"pkgdb array: %s\n", strerror(rv));
|
"pkgdb array: %s\n", strerror(rv));
|
||||||
|
Reference in New Issue
Block a user