xbps_repository_register(): if repository already exists return EEXIST.

Bump XBPS_RELVER to 20100427.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20100427160125-3vid17cb7fy4v3gd
This commit is contained in:
Juan RP 2010-04-27 18:01:25 +02:00
parent 9ee1f8a09a
commit b77bebe03a
2 changed files with 4 additions and 5 deletions

View File

@ -44,8 +44,7 @@
#include <archive.h> #include <archive.h>
#include <archive_entry.h> #include <archive_entry.h>
/* Use our own queue header (from NetBSD) */ #include <sys/queue.h>
#include "queue.h"
__BEGIN_DECLS __BEGIN_DECLS
@ -60,7 +59,7 @@ __BEGIN_DECLS
* @def XBPS_RELVER * @def XBPS_RELVER
* Current library release date. * Current library release date.
*/ */
#define XBPS_RELVER "20100420" #define XBPS_RELVER "20100427"
/** /**
* @def XBPS_META_PATH * @def XBPS_META_PATH

View File

@ -1,5 +1,5 @@
/*- /*-
* Copyright (c) 2008-2009 Juan Romero Pardines. * Copyright (c) 2008-2010 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
@ -85,7 +85,7 @@ xbps_repository_register(const char *uri)
} }
/* It seems that this object is already there */ /* It seems that this object is already there */
if (xbps_find_string_in_array(array, uri)) { if (xbps_find_string_in_array(array, uri)) {
errno = EEXIST; rv = EEXIST;
goto out; goto out;
} }