[SCM] dpkg's main repository branch, master, updated. 1.15.6.1-18-g6b5a720

2010-04-04 Thread Helge Kreutzmann
The following commit has been merged in the master branch:
commit 6b5a7208581774ba23517431b4abc67d30527dd5
Author: Helge Kreutzmann deb...@helgefjell.de
Date:   Sun Apr 4 16:51:44 2010 +0200

Update German translation of manual pages

Update to 1814t.

diff --git a/man/po/de.po b/man/po/de.po
index 5272611..3fc26a6 100644
--- a/man/po/de.po
+++ b/man/po/de.po
@@ -8,7 +8,7 @@ msgid 
 msgstr 
 Project-Id-Version: dpkg man pages\n
 POT-Creation-Date: 2010-03-07 21:33+\n
-PO-Revision-Date: 2010-04-02 07:49+0200\n
+PO-Revision-Date: 2010-04-04 16:46+0200\n
 Last-Translator: Helge Kreutzmann deb...@helgefjell.de\n
 Language-Team: de debian-l10n-ger...@lists.debian.org\n
 MIME-Version: 1.0\n
@@ -9377,6 +9377,15 @@ msgstr 
 msgid B--all
 msgstr B--all
 
+# type: Plain text
+#. type: Plain text
+#: dpkg-parsechangelog.1:108
+msgid 
+include all changes. Note: other options have no effect when this is in use.
+msgstr 
+alle �nderungen aufnehmen. Hinweis: Andere Optionen haben keine Wirkung, wenn 

+diese verwandt wird.
+
 #. type: Plain text
 #: dpkg-parsechangelog.1:107
 msgid include all changes.

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Reimplement mksplit.pl in C

2010-04-04 Thread Marcelo E. Magallon
[ I subscribed to the list, thanks for the Cc:'s ]

On Sat, Apr 03, 2010 at 12:20:52PM -0600, Marcelo E. Magallon wrote:

  The two cases I can think of are splitting an archive that
  splits to a single piece, splitting to multiple pieces and
  some failure cases.

 Right now I do something like:

 cat test.deb |
 build-tree/dpkg-split/mksplit test.deb 1024 test 4608 2048 no
 cp test.deb test.deb.orig
 dpkg-split -j test*.deb
 cmp test.deb test.deb.orig  echo OK

 but not much more.

 I did some refactoring, and reused a couple of bits of libdpkg.
 I was hoping for libdpkg to have something like:

package = get_deb_field(my_package.deb, Package);

 but I didn't find it.  Did I miss it?  Is there something close
 to that?

 Anyways, the updated patches are attached.

 Marcelo
From 40cbd26e938f3ffda58803c6e25d6e4c9a836b96 Mon Sep 17 00:00:00 2001
From: Marcelo E. Magallon marcelo.magal...@gmail.com
Date: Fri, 2 Apr 2010 22:27:50 -0600
Subject: [PATCH 1/5] Reimplement mksplit in C

My original intention was to do without some of the pipes, but for the
initial implementation this is just a translation of the original Perl
program into C, without much in the way of optimization.  It produces
the same output and exits in the same way as the original program (mod
exit status probably).

The reimplementation can use some refactoring love.
---
 dpkg-split/Makefile.am |   12 ++-
 dpkg-split/mksplit.c   |  279 
 2 files changed, 288 insertions(+), 3 deletions(-)
 create mode 100644 dpkg-split/mksplit.c

diff --git a/dpkg-split/Makefile.am b/dpkg-split/Makefile.am
index 6f6043c..3ea9d00 100644
--- a/dpkg-split/Makefile.am
+++ b/dpkg-split/Makefile.am
@@ -24,10 +24,16 @@ dpkg_split_LDADD = \
 	../lib/compat/libcompat.a \
 	$(LIBINTL)
 
+mksplit_SOURCES = \
+	mksplit.c
 
-pkglib_SCRIPTS = mksplit
-EXTRA_DIST = mksplit.pl
-CLEANFILES = $(pkglib_SCRIPTS)
+mksplit_LDADD = \
+	../lib/dpkg/libdpkg.a \
+	../lib/compat/libcompat.a \
+	$(LIBINTL)
+
+pkglib_PROGRAMS = mksplit
+CLEANFILES = $(pkglib_PROGRAMS)
 
 
 do_perl_subst = $(AM_V_GEN) sed -e s:^\#![:space:]*/usr/bin/perl:\#!$(PERL):
diff --git a/dpkg-split/mksplit.c b/dpkg-split/mksplit.c
new file mode 100644
index 000..5ca34d6
--- /dev/null
+++ b/dpkg-split/mksplit.c
@@ -0,0 +1,279 @@
+/* This program is only supposed to be called by dpkg-split.
+ * Its arguments are:
+ * sourcefile partsize prefix totalsize partsizeallow msdostruncyesno
+ * Stdin is also redirected from the source archive by dpkg-split.
+ *
+ * Copyright © 1995 Ian Jackson i...@chiark.greenend.org.uk
+ * Copyright © 2010 Marcelo E. Magallon mmaga...@debian.org
+ *
+ * This is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see http://www.gnu.org/licenses/.
+ */
+
+#include stdio.h
+#include stdlib.h
+#include time.h
+#include limits.h
+#include error.h
+#include string.h
+#include ctype.h
+#include errno.h
+#include unistd.h
+
+#define MSDOS_PATH_MAX 10
+
+void checked_free(void *ptr)
+{
+if (ptr) free(ptr);
+}
+
+void add(FILE *stream, char* id, char* data, size_t len)
+{
+time_t current_time;
+
+current_time = time(NULL);
+fprintf(stream, %-16s%-12d0 0 100644  %-10d%c\n,
+id, (int)current_time, (int)len, 0140);
+fwrite(data, 1, len, stream);
+fprintf(stream, %s, (len  1) ? \n : );
+}
+
+char* output(char *cmd)
+{
+FILE * file = NULL;
+int len = getpagesize();
+char *result = (char *)malloc(len);
+char *p = result;
+
+if (result == NULL)
+goto error_out;
+
+if ((file = popen(cmd, r)) == NULL)
+goto error_out;
+
+while (len  0  !feof(file))
+{
+int n;
+n = fread(p, 1, len, file);
+if (ferror(file))
+goto error_out;
+p += n;
+len -= n;
+}
+goto out;
+
+error_out:
+if (result)
+{
+free(result);
+result = NULL;
+}
+
+out:
+if (file)
+pclose(file);
+return result;
+}
+
+char* get_field(char *filename, char *field)
+{
+char *result;
+char cmd[PATH_MAX];
+sprintf(cmd, dpkg-deb --field %s %s, filename, field);
+
+result = output(cmd);
+if (result)
+{
+char *p;
+for (p = result + strlen(result) - 1; p = result  isspace(*p); --p)
+*p = 0;
+}
+
+return result;
+}
+
+char* get_md5sum(char *filename)
+{
+char *result;
+char cmd[PATH_MAX];
+

Re: Reimplement mksplit.pl in C

2010-04-04 Thread Marcelo E. Magallon
On Sat, Apr 03, 2010 at 09:23:54PM +0200, Raphael Hertzog wrote:

 The more recent reference is in http://wiki.debian.org/Teams/Dpkg/RoadMap

 Thanks!

 Marcelo


-- 
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100405034717.gb21...@esk



Processed: severity of 521183 is minor, reassign 521183 to dpkg

2010-04-04 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 severity 521183 minor
Bug #521183 [nfs-kernel-server] nfs-kernel-server: Please be consistent when 
succeeding/failing
Severity set to 'minor' from 'normal'

 # seems to be the fault of start-stop-daemon
 reassign 521183 dpkg
Bug #521183 [nfs-kernel-server] nfs-kernel-server: Please be consistent when 
succeeding/failing
Bug reassigned from package 'nfs-kernel-server' to 'dpkg'.
Bug No longer marked as found in versions nfs-utils/1:1.1.2-6lenny1.
 thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org