Package: mini-dinstall Version: 0.6.21 Severity: wishlist Tags: patch
attached patch adds bz2 versions of the Packages and Sources files. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.10-4 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages mini-dinstall depends on: ii apt-utils 0.6.39.0.1 APT utility programs ii python 2.3.5-3 An interactive high-level object-o ii python-apt 0.6.13.1 Python interface to libapt-pkg mini-dinstall recommends no packages. -- no debconf information
diff -ru mini-dinstall-0.6.21/mini-dinstall mini-dinstall-0.6.21.varda.2/mini-dinstall --- mini-dinstall-0.6.21/mini-dinstall 2005-02-12 19:09:45.000000000 +0100 +++ mini-dinstall-0.6.21.varda.2/mini-dinstall 2005-08-19 11:07:23.193373749 +0200 @@ -18,7 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -import os, sys, re, glob, getopt, time, traceback, gzip, getpass, socket +import os, sys, re, glob, getopt, time, traceback, gzip, bz2, getpass, socket import signal, threading, select, Queue, SocketServer import logging, logging.handlers #logging.basicConfig() @@ -1049,10 +1054,12 @@ stdout = os.fdopen(infd) packagesfile = open(os.path.join(dir, name), 'w') zpackagesfile = gzip.GzipFile(os.path.join(dir, name + '.gz'), 'w') + bz2packagesfile = bz2.BZ2File(os.path.join(dir, name + '.bz2'), 'w') buf = stdout.read(8192) while buf != '': packagesfile.write(buf) zpackagesfile.write(buf) + bz2packagesfile.write(buf) buf = stdout.read(8192) stdout.close() (pid, status) = os.waitpid(pid, 0) @@ -1060,6 +1067,7 @@ raise DinstallException("apt-ftparchive exited with status code %d" % (status,)) packagesfile.close() zpackagesfile.close() + bz2packagesfile.close() def _make_packagesfile(self, dir): self._make_indexfile(dir, 'packages', 'Packages') @@ -1081,7 +1092,7 @@ release_needed = 0 uncompr_indexfiles = self._get_all_indexfiles() indexfiles = [] - comprexts = ['.gz'] + comprexts = ['.gz', '.bz2'] for index in uncompr_indexfiles: indexfiles = indexfiles + [index] for ext in comprexts: