Your message dated Thu, 21 Feb 2008 07:32:04 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#460868: fixed in ucf 3.005
has caused the Debian Bug report #460868,
regarding ucfq /path/to/file is broken
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
460868: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=460868
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: ucf
Version: 3.004
Severity: normal
Tags: patch
Hi,
ucfq /path/to/file never gives any output. Consider:
sid% ucfq tex-common
Configuration file Package Exists
Changed
/etc/texmf/texmf.d/05TeXMF.cnf tex-common Yes
/etc/texmf/texmf.d/15Plain.cnf tex-common Yes
/etc/texmf/texmf.d/45TeXinputs.cnf tex-common Yes
/etc/texmf/texmf.d/55Fonts.cnf tex-common Yes
/etc/texmf/texmf.d/65BibTeX.cnf tex-common Yes
/etc/texmf/texmf.d/75DviPS.cnf tex-common Yes
/etc/texmf/texmf.d/85Misc.cnf tex-common Yes
/etc/texmf/texmf.d/90TeXDoc.cnf tex-common Yes
/etc/texmf/texmf.d/95NonPath.cnf tex-common Yes
/etc/texmf/updmap.d/00updmap.cfg tex-common Yes
sid% ucfq /etc/texmf/texmf.d/05TeXMF.cnf
sid% ucfq /etc/texmf/texmf.d/15Plain.cnf
sid%
It looks like the problem is that ^/ is matched twice with the global
option (m//g) on the filename in ucf::process(), so the second one fails
looking for the next match.
I don't see the need for global match here, and removing the /g fixes
this for me. Proposed patch attached, sorry if I'm missing something.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.18-5-xen-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages ucf depends on:
ii cdebconf [debconf-2.0] 0.126 Debian Configuration Management Sy
ii coreutils 5.97-5.7 The GNU core utilities
ii debconf [debconf-2.0] 1.5.18 Debian configuration management sy
Versions of packages ucf recommends:
ii debconf-utils 1.5.18 debconf utilities
-- debconf information excluded
>From 8c67efe810a5968929fd3fd42bc95c0a386300ff Mon Sep 17 00:00:00 2001
From: Niko Tyni <[EMAIL PROTECTED]>
Date: Tue, 15 Jan 2008 13:42:38 +0200
Subject: [PATCH] global matching is not wanted here
---
ucfq | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ucfq b/ucfq
index 42fa77a..06f2dea 100755
--- a/ucfq
+++ b/ucfq
@@ -270,9 +270,9 @@ sub process {
}
for (keys %{$this->{configs}}) {
warn "Need a fully qualified path name for config file \"$_\"\n"
- unless m,^/,g;
+ unless m,^/,;
# Don't die for etch
- exit 0 unless m,^/,g;
+ exit 0 unless m,^/,;
my $file = conffile->new('Name' => "$_");
$this->{file_list}->element($_, $file);
}
--
1.5.3.8
--- End Message ---
--- Begin Message ---
Source: ucf
Source-Version: 3.005
We believe that the bug you reported is fixed in the latest version of
ucf, which is due to be installed in the Debian FTP archive:
ucf_3.005.dsc
to pool/main/u/ucf/ucf_3.005.dsc
ucf_3.005.tar.gz
to pool/main/u/ucf/ucf_3.005.tar.gz
ucf_3.005_all.deb
to pool/main/u/ucf/ucf_3.005_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Manoj Srivastava <[EMAIL PROTECTED]> (supplier of updated ucf package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Thu, 21 Feb 2008 01:10:57 -0600
Source: ucf
Binary: ucf
Architecture: source all
Version: 3.005
Distribution: unstable
Urgency: low
Maintainer: Manoj Srivastava <[EMAIL PROTECTED]>
Changed-By: Manoj Srivastava <[EMAIL PROTECTED]>
Description:
ucf - Update Configuration File: preserve user changes to config files.
Closes: 424926 456241 456245 460868 464238
Changes:
ucf (3.005) unstable; urgency=low
.
* Bug fix: "ucfq /path/to/file is broken", thanks to Niko Tyni. Applied
the patch provided in the report. Closes: #460868
* Of course, this did not mean that the modified column was actually
filled with valid values: A number of places we were not using the
proper accessor methods, which added to the confusion. Fixed.
Closes: #464238
* Add a new --debconf-template option to specify an alternate
caller-provided debconf template for the user prompt. Heavy lifting
done by Steve Langasek. This was apparently done to allow grub in
Ubuntu to manage partial file fragments. Closes: #456241.
* Use db_x_loadtemplatefile instead of debconf-loadtemplates for template
loading, and depend on debconf (>= 1.5.19) | cdebconf for the
implementation. Thanks to Steve Langasek. Closes: #424926
* Drop the Recommends: debconf-utils now that it's no longer used.
* Instead of proceeding merrily on our way if the three way merge fails,
we now leave the dest file unchanged, leave the mess in the new file
(foo.ucf-new), tell the user about it, and abort the upgrade by
exiting with exit 3. We still psit out an error about conflicts.
Hopefully, this adequately resolves the bug. Closes: #456245
Files:
714354fb759f2a1430f3b904ba7ea3a3 648 utils optional ucf_3.005.dsc
6c8b06b32a387d9c136990042d0e075e 82832 utils optional ucf_3.005.tar.gz
7615e0b9a05f3ad3a133329e2b8089ac 61234 utils optional ucf_3.005_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHvSb5Ibrau78kQkwRAnkDAJ0Y40e8GFhosDGUTVAPcoUKwLMZRQCePbSF
wnk6ulyZr+bY6DykfilkSSc=
=X7Q3
-----END PGP SIGNATURE-----
--- End Message ---