summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-12-22 20:38:55 +0100
committerAaron Griffin <aaron@archlinux.org>2006-12-22 20:38:55 +0100
commite3aace4a4d821d388a40545d6497069a973636d8 (patch)
treea5043edfd56135b43162587c34669515ed3ba613
parentd8d82215561305cb7af0a33d7810cbb9cadb2cea (diff)
downloadpacman-e3aace4a4d821d388a40545d6497069a973636d8.tar.gz
pacman-e3aace4a4d821d388a40545d6497069a973636d8.tar.xz
Cleanup from Dan McGee <dpmcgee@gmail.com> and Jürgen Hötzel <juergen@hoetzel.info>
* configure swig check * misc libalpm cleanup
-rw-r--r--configure.ac10
-rw-r--r--doc/po/hu.po4
-rw-r--r--doc/po/pacman.pot4
-rw-r--r--lib/libalpm/alpm.h6
-rw-r--r--lib/libalpm/backup.c4
-rw-r--r--lib/libalpm/db.h6
-rw-r--r--lib/libalpm/sync.c2
7 files changed, 20 insertions, 16 deletions
diff --git a/configure.ac b/configure.ac
index d4e3f428..af741d1d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,7 +3,7 @@ CFLAGS=""
AC_PREREQ(2.59)
dnl Update it right before the release since $pkgver_foo are all _post_ release snapshots
-AC_INIT([Pacman package manager], 3.4.0, [pacman-dev@archlinux.org], pacman)
+AC_INIT([Pacman package manager], 3.0.0, [pacman-dev@archlinux.org], pacman)
AC_LANG(C)
AM_CONFIG_HEADER(config.h)
AC_CANONICAL_SYSTEM
@@ -214,10 +214,12 @@ else
DOXYSTATUS="no, disabled by configure"
fi
+dnl Check for swig binary
+AC_CHECK_PROGS([SWIG], [swig])
+
dnl Check for python support
AC_MSG_CHECKING(if Python bindings should be generated)
if test x$wantpython = xyes ; then
- AC_CHECK_PROGS([SWIG], [swig])
AM_CONDITIONAL(HAS_PYTHON, test $SWIG)
if test $SWIG ; then
AC_DEFINE([HAS_PYTHON], [TRUE], [Enabled Python Support])
@@ -238,7 +240,6 @@ fi
dnl Check for perl support
AC_MSG_CHECKING(if Perl bindings should be generated)
if test x$wantperl = xyes ; then
- AC_CHECK_PROGS([SWIG], [swig])
AM_CONDITIONAL(HAS_PERL, test $SWIG)
if test $SWIG ; then
AC_DEFINE([HAS_PERL], [TRUE], [Enabled Perl Support])
@@ -259,9 +260,8 @@ fi
dnl Check for java support
AC_MSG_CHECKING(if Java bindings should be generated)
if test x$wantjava = xyes ; then
- AC_CHECK_PROGS([SWIG], [swig])
AC_CHECK_PROGS([JAVAC], [javac])
- AM_CONDITIONAL(HAS_JAVA, test $JAVAC -a $SWIG)
+ AM_CONDITIONAL(HAS_JAVA, test "$JAVAC" -a "$SWIG")
if test $JAVAC ; then
if test $SWIG ; then
AC_DEFINE([HAS_JAVA], [TRUE], [Enabled Java Support (javac=ok swig=ok)])
diff --git a/doc/po/hu.po b/doc/po/hu.po
index 117aecd7..bd1d0c3f 100644
--- a/doc/po/hu.po
+++ b/doc/po/hu.po
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: pacman\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-12-08 13:57-0600\n"
+"POT-Creation-Date: 2006-12-23 1:35-0600\n"
"PO-Revision-Date: 2006-08-26 14:53+0200\n"
"Last-Translator: Hungarian <frugalware-devel@frugalware.org>\n"
"Language-Team: Hungarian <frugalware-devel@frugalware.org>\n"
@@ -28,7 +28,7 @@ msgstr "2006. január 21."
# type: TH
#: pacman.8:1
#, no-wrap
-msgid "pacman 3.4.0"
+msgid "pacman 3.0.0"
msgstr ""
# type: SH
diff --git a/doc/po/pacman.pot b/doc/po/pacman.pot
index 7db5e0bc..729ddeb4 100644
--- a/doc/po/pacman.pot
+++ b/doc/po/pacman.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2006-12-08 13:57-0600\n"
+"POT-Creation-Date: 2006-12-23 1:35-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -29,7 +29,7 @@ msgstr ""
# type: TH
#: pacman.8:1
#, no-wrap
-msgid "pacman 3.4.0"
+msgid "pacman 3.0.0"
msgstr ""
# type: SH
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index 2f35ad6f..143f3367 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -399,7 +399,7 @@ char *alpm_get_sha1sum(char *name);
/*
* Errors
*/
-extern enum __pmerrno_t {
+enum __pmerrno_t {
PM_ERR_MEMORY = 1,
PM_ERR_SYSTEM,
PM_ERR_BADPERMS,
@@ -469,7 +469,9 @@ extern enum __pmerrno_t {
/* Downloading */
PM_ERR_CONNECT_FAILED,
PM_ERR_FORK_FAILED
-} pm_errno;
+};
+
+extern enum __pmerrno_t pm_errno;
char *alpm_strerror(int err);
diff --git a/lib/libalpm/backup.c b/lib/libalpm/backup.c
index cf29abf0..4c438fe4 100644
--- a/lib/libalpm/backup.c
+++ b/lib/libalpm/backup.c
@@ -55,9 +55,9 @@ char *_alpm_needbackup(char *file, pmlist_t *backup)
ptr++;
/* now str points to the filename and ptr points to the md5 or sha1 hash */
if(!strcmp(file, str)) {
- char *md5 = strdup(ptr);
+ char *hash = strdup(ptr);
FREE(str);
- return(md5);
+ return(hash);
}
FREE(str);
}
diff --git a/lib/libalpm/db.h b/lib/libalpm/db.h
index d894c213..9224d69a 100644
--- a/lib/libalpm/db.h
+++ b/lib/libalpm/db.h
@@ -43,11 +43,14 @@ struct __pmdb_t {
pmlist_t *grpcache;
pmlist_t *servers;
};
-
+/* db.c, database general calls */
pmdb_t *_alpm_db_new(char *root, char *dbpath, char *treename);
void _alpm_db_free(void *data);
int _alpm_db_cmp(const void *db1, const void *db2);
pmlist_t *_alpm_db_search(pmdb_t *db, pmlist_t *needles);
+pmdb_t *_alpm_db_register(char *treename, alpm_cb_db_register callback);
+
+/* be.c, backend specific calls */
int _alpm_db_install(pmdb_t *db, const char *dbfile);
int _alpm_db_open(pmdb_t *db);
void _alpm_db_close(pmdb_t *db);
@@ -58,7 +61,6 @@ int _alpm_db_write(pmdb_t *db, pmpkg_t *info, unsigned int inforeq);
int _alpm_db_remove(pmdb_t *db, pmpkg_t *info);
int _alpm_db_getlastupdate(pmdb_t *db, char *ts);
int _alpm_db_setlastupdate(pmdb_t *db, char *ts);
-pmdb_t *_alpm_db_register(char *treename, alpm_cb_db_register callback);
#endif /* _ALPM_DB_H */
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index a2645a38..e31a891f 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -382,7 +382,7 @@ int _alpm_sync_prepare(pmtrans_t *trans, pmdb_t *db_local, pmlist_t *dbs_sync, p
{
pmlist_t *deps = NULL;
pmlist_t *list = NULL; /* list allowing checkdeps usage with data from trans->packages */
- pmlist_t *trail = NULL; /* breadcrum list to avoid running into circles */
+ pmlist_t *trail = NULL; /* breadcrumb list to avoid running into circles */
pmlist_t *asked = NULL;
pmlist_t *i, *j, *k, *l;
int ret = 0;