scripts/dpkg-statoverride.pl: use -e instead of -f to test
for filesystem object existance
scripts/dpkg-source.pl: swap chdir and open in extracttar to
prevent race with source-directory being removed while the
sh/grep process is still running. Patch from Colin Watson
scripts/dpkg-source.pl: fix error in error message
utils/Makefile.in: set top_builddir
Makefile.in: spell version-nr correctly
scripts/dpkg-source.pl: modify how we handle the dscformat: we now
assume all major versions are upwards and backwards compatibly. This
allows us to add new fields without breaking older versions of
dpkg-source
Adam Heath [Sun, 14 Jan 2001 08:40:57 +0000 (08:40 +0000)]
Removed duplicate code that was used to exec maintainer scripts, and moved
it to a single function. In the future, this single function could be used
for tracking script execution.
Adam Heath [Thu, 4 Jan 2001 07:35:21 +0000 (07:35 +0000)]
Add 'warn' parameter to waitsubproc and checksubprocerr, and also add a
return value. This fixes my last checkin, where
maintainer_script_alternative would run both the old and new script.
Adam Heath [Wed, 27 Dec 2000 20:57:54 +0000 (20:57 +0000)]
Removed use of getc(), and instead use pointers into a gigantic memory
buffer(either thru mmap, or by copying into a large buffer(#define
PARSE_MMAP)). Nice little speedup, and also had the added benefit of
removing varbuf* code from parsedb().
Adam Heath [Tue, 26 Dec 2000 10:37:27 +0000 (10:37 +0000)]
Increased the speed of convert_string() by a factor of 2, by storing the
length of each string inside the struct(this function is used to convert
strings into integer values).
This is the first speedup discovered by using gprof.
Wichert Akkerman [Sun, 24 Dec 2000 16:59:21 +0000 (16:59 +0000)]
Undo earlier changes from Adam to handle -W options for the compiler
and do things much simpler instead based on the old working but not
correctly used code.
Adam Heath [Sun, 24 Dec 2000 03:27:43 +0000 (03:27 +0000)]
Clean up a few gcc warnings. Note that the warning:
"deprecated conversion from string constant to `char *'"
is actually a bug in ncurses-dev(which has been filed as 80410) not setting
the fmt argument as const.
Adam Heath [Wed, 20 Dec 2000 08:21:27 +0000 (08:21 +0000)]
Move -D_GNU_SOURCE from configure.in to Makefile, and from CFLAGS to DEFS.
This macro was getting lost if someone was setting CFLAGS on the cmdline.
Perhaps this should be moved into config.h.in?
Adam Heath [Wed, 20 Dec 2000 07:42:03 +0000 (07:42 +0000)]
* main/processarc.c: Don't copy trailing zeros from dpkg-deb pipe.
* main/archives.c: Fix some i8ln.
* dpkg-deb/extract.c: Remove skipmember(), and use the buffer copy code.
Wichert Akkerman [Sun, 17 Dec 2000 16:37:04 +0000 (16:37 +0000)]
More Adam stuff:
+ lib/mlib.c, include/dpkg.h.in: make do_fd_copy even more modular
+ dpkg-deb/{build.c,extract.c,info.c}, lib/showcright.c,
main/{enquiry.c,filesdb.c}: updated for new do_fd_copy routines
+ main/{archives,[ch],main/processarc.c}: use fds instead of streams
so we don't mix fd and stream-based IO which can cause havoc
Wichert Akkerman [Wed, 13 Dec 2000 16:08:18 +0000 (16:08 +0000)]
main/archives.c: create files, fifos, devices and directories with mode 0
too close a small window when they are readable before we apply the correct
permissions.
main/archives.c: newtarobject_allmodes() updated to handle statoverrides