summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Collins <bcollins@debian.org>1999-10-21 10:38:38 +0000
committerBen Collins <bcollins@debian.org>1999-10-21 10:38:38 +0000
commit43d40df9621b9203a1b52af0d217dccfa475cff7 (patch)
treebae50df3ecd1f4a7c67390f7be938b961c4d838e /lib
parent7c995732b145b753060df5d172e3d70acb6e327b (diff)
downloaddpkg-43d40df9621b9203a1b52af0d217dccfa475cff7.tar.gz
* Fixed some compiler warnings
* Make start-stop-daemon exit(1) when we don't find one of the pid's we are trying to kill, in accordance with the man page. * When running --configure on an already installed package, just say it's installed, and not that it is in an unconfigurable state * Bah, add all the prefix/datadir... stuff back to the install target in debian/rules (po/ doesn't use it) * Add function to libdpkg that dpkg can call to make sure it's compiled version matches that of the library. If it fails, complain loudly, but allow to proceed * Make dpkg check for uid 0 requirement, before checking the path since not being root, is probably the reason that the PATH is borked in the first place * Make -p short for --print-avail, and -P short for --purge * Fix typo in md5sum(1) man page * start-stop-daemon: Add --background and --make-pidfile options * update-alternatives: make sure we remove "old" symlinks when they are no longer pertinent. Add /etc/alternatives/README that refers to the update-alternatives(8) man page. * dpkg-divert: Add check for being able to write to the old/new destination before doing a rename. We fail on this, without changing the diversion registry * Fix bad regex in update-rc.d
Diffstat (limited to 'lib')
-rw-r--r--lib/dump.c2
-rw-r--r--lib/parse.c2
-rw-r--r--lib/showcright.c5
3 files changed, 8 insertions, 1 deletions
diff --git a/lib/dump.c b/lib/dump.c
index a43be264e..53fb1bab8 100644
--- a/lib/dump.c
+++ b/lib/dump.c
@@ -27,6 +27,8 @@
#include <unistd.h>
#include <ctype.h>
#include <assert.h>
+#include <sys/types.h>
+#include <sys/stat.h>
#include <config.h>
#include <dpkg.h>
diff --git a/lib/parse.c b/lib/parse.c
index c1b4164a1..258dc42dc 100644
--- a/lib/parse.c
+++ b/lib/parse.c
@@ -200,7 +200,7 @@ int parsedb(const char *filename, enum parsedbflags flags,
&newpifp->maintainer, "maintainer");
if (newpig.status != stat_halfinstalled)
parsemustfield(file,filename,lno, warnto,warncount,&newpig,0,
- &newpifp->version.version, "version");
+ (char **)&newpifp->version.version, "version");
}
if (flags & pdb_recordavailable)
parsemustfield(file,filename,lno, warnto,warncount,&newpig,1,
diff --git a/lib/showcright.c b/lib/showcright.c
index c327076b2..037c5dbcf 100644
--- a/lib/showcright.c
+++ b/lib/showcright.c
@@ -24,6 +24,7 @@
#include <config.h>
#include <dpkg.h>
+#include <version.h>
void showcopyright(const struct cmdinfo *c, const char *v) {
int fd;
@@ -33,3 +34,7 @@ void showcopyright(const struct cmdinfo *c, const char *v) {
execlp(CAT,CAT,"-",(char*)0);
ohshite(_("unable to exec cat for displaying GPL file"));
}
+
+char *libdpkgver(void) {
+ return DPKG_VERSION;
+}