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:
parent
9ee1f8a09a
commit
b77bebe03a
@ -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
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user