Bug#571591: debian-cd: Move 'log' to the file end not its start
Package: debian-cd
Version: 3.1.1
Severity: minor
Tags: patch
debian-cd uses both foobar.log and log.bazbar for its logging output.
Although untested, this patch looks like it should move the two files
starting with log. so they end with .log.
thanks,
kk
-- System Information:
Debian Release: 5.0.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.30.7-libre-fshoppe1 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages debian-cd depends on:
ii apt 0.7.20.2+lenny1 Advanced front-end for dpkg
ii bc 1.06.94-3 The GNU bc arbitrary precision cal
ii cpp 4:4.3.2-2 The GNU C preprocessor (cpp)
ii curl 7.18.2-8lenny3 Get a file from an HTTP, HTTPS or
ii dctrl-tools [grep-dctrl 2.13.1 Command-line tools to process Debi
ii genisoimage 9:1.1.9-1 Creates ISO-9660 CD-ROM filesystem
ii libcompress-zlib-perl 2.012-1 Perl module for creation and manip
ii lynx-cur 2.8.7dev9-2.1 Text-mode WWW Browser with NLS sup
ii make 3.81-5 The GNU version of the "make" util
ii perl [libdigest-md5-per 5.10.0-19lenny2 Larry Wall's Practical Extraction
ii tofrodos 1.7.8.debian.1-1 Converts DOS <-> Unix text files,
Versions of packages debian-cd recommends:
pn hfsutils <none> (no description available)
pn netpbm <none> (no description available)
pn syslinux-common <none> (no description available)
debian-cd suggests no packages.
-- no debconf information
Index: tools/sort_deps
===================================================================
--- tools/sort_deps (revision 1983)
+++ tools/sort_deps (working copy)
@@ -34,8 +34,8 @@
$| = 1; # Autoflush for debugging
-open(LOG, ">$dir/log.sort_deps.$arch")
- || die "Can't write in $dir/log.sort_deps.$arch !\n";
+open(LOG, ">$dir/sort_deps.$arch.log")
+ || die "Can't write in $dir/sort_deps.$arch.log !\n";
sub msg {
my $level = shift;
Index: tools/start_new_disc
===================================================================
--- tools/start_new_disc (revision 1983)
+++ tools/start_new_disc (working copy)
@@ -271,13 +271,13 @@
echo >> $CDDIR/README.excluded
fi
- grep "refused because of toobig" $BDIR/log.sort_deps* | sort -u | awk '{print $1}' > $BDIR/toobig
+ grep "refused because of toobig" $BDIR/sort_deps*.log | sort -u | awk '{print $1}' > $BDIR/toobig
if [ -s $BDIR/toobig ] ; then
echo " Adding README.excluded (some package files were too big)"
echo "For size reasons, the following packages were excluded from this disc set:" >> $CDDIR/README.excluded
echo >> $CDDIR/README.excluded
cat $BDIR/toobig >> $CDDIR/README.excluded
- grep "Can't add.*toobig" $BDIR/log.sort_deps* | sort -u | awk '{print $3}' > $BDIR/toobig-deps
+ grep "Can't add.*toobig" $BDIR/sort_deps*.log | sort -u | awk '{print $3}' > $BDIR/toobig-deps
if [ -s $BDIR/toobig-deps ] ; then
echo >> $CDDIR/README.excluded
echo "and that caused the following packages to be also excluded because" >> $CDDIR/README.excluded
Reply to: