Author: guillem
Date: 2006-06-04 12:24:47 +0000 (Sun, 04 Jun 2006)
New Revision: 375
Modified:
trunk/ChangeLog
trunk/debian/changelog
trunk/scripts/changelog/debian.pl
trunk/scripts/dpkg-parsechangelog.pl
trunk/scripts/po/ChangeLog
trunk/scripts/po/dpkg-dev.pot
Log:
Print the correct file being parsed by dpkg-parsechangelog's debian
parser. Closes: #368961
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-06-04 12:17:53 UTC (rev 374)
+++ trunk/ChangeLog 2006-06-04 12:24:47 UTC (rev 375)
@@ -1,3 +1,12 @@
+2006-06-04 Guillem Jover <[EMAIL PROTECTED]>
+
+ * scripts/dpkg-parsechangelog.pl: Pass forward the '-l' option to
+ the format parser.
+ * scripts/changelog/debian.pl: Add '-l' option and set $changelogfile.
+ (usage): Document the new '-l' option.
+ (clerror): Print $changelogfile instead of 'changelog'.
+ (clwarn): Likewise.
+
2006-06-02 Guillem Jover <[EMAIL PROTECTED]>
* scripts/install-info.pl: Do not use English non-essential module.
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2006-06-04 12:17:53 UTC (rev 374)
+++ trunk/debian/changelog 2006-06-04 12:24:47 UTC (rev 375)
@@ -8,6 +8,8 @@
list. Closes: #367892
* Revert usage of English perl non-essential module from install-info.
Closes: #369928, #369958, #370157, #370174, #370210
+ * Print the correct file being parsed by dpkg-parsechangelog's debian
+ parser. Closes: #368961
[ Updated dpkg Translations ]
* Czech (Miroslav Kure).
Modified: trunk/scripts/changelog/debian.pl
===================================================================
--- trunk/scripts/changelog/debian.pl 2006-06-04 12:17:53 UTC (rev 374)
+++ trunk/scripts/changelog/debian.pl 2006-06-04 12:24:47 UTC (rev 375)
@@ -38,6 +38,7 @@
"Usage: %s [<option>]
Options:
+ -l<changelog> use <changelog> as the file name when reporting.
-v<versionsince> print changes since <versionsince>.
-h, --help print this help message.
--version print program version.
@@ -48,6 +49,8 @@
$_=shift(@ARGV);
if (m/^-v(.+)$/) {
$since= $1;
+ } elsif (m/^-l(.+)$/) {
+ $changelogfile = $1;
} elsif (m/^-(h|-help)$/) {
&usage; exit(0);
} elsif (m/^--version$/) {
@@ -162,5 +165,13 @@
&outputclose(0);
-sub clerror { &error(sprintf(_g("%s, at changelog line %d"), $_[0], $.)); }
-sub clwarn { &warn(sprintf(_g("%s, at changelog line %d"), $_[0], $.)); }
+sub clerror
+{
+ &error(sprintf(_g("%s, at file %s line %d"), $_[0], $changelogfile, $.));
+}
+
+sub clwarn
+{
+ &warn(sprintf(_g("%s, at file %s line %d"), $_[0], $changelogfile, $.));
+}
+
Modified: trunk/scripts/dpkg-parsechangelog.pl
===================================================================
--- trunk/scripts/dpkg-parsechangelog.pl 2006-06-04 12:17:53 UTC (rev
374)
+++ trunk/scripts/dpkg-parsechangelog.pl 2006-06-04 12:24:47 UTC (rev
375)
@@ -50,8 +50,8 @@
$_= shift(@ARGV);
if (m/^-L/ && length($_)>2) { $libdir=$'; next; }
if (m/^-F([0-9a-z]+)$/) { $force=1; $format=$1; next; }
+ push(@ap,$_);
if (m/^-l/ && length($_)>2) { $changelogfile=$'; next; }
- push(@ap,$_);
m/^--$/ && last;
m/^-v/ && next;
if (m/^-(h|-help)$/) { &usage; exit(0); }
Modified: trunk/scripts/po/ChangeLog
===================================================================
--- trunk/scripts/po/ChangeLog 2006-06-04 12:17:53 UTC (rev 374)
+++ trunk/scripts/po/ChangeLog 2006-06-04 12:24:47 UTC (rev 375)
@@ -1,3 +1,7 @@
+2006-06-04 Guillem Jover <[EMAIL PROTECTED]>
+
+ * dpkg-dev.pot: Regenerated.
+
2006-05-31 Guillem Jover <[EMAIL PROTECTED]>
* dpkg-dev.pot: Regenerated.
Modified: trunk/scripts/po/dpkg-dev.pot
===================================================================
--- trunk/scripts/po/dpkg-dev.pot 2006-06-04 12:17:53 UTC (rev 374)
+++ trunk/scripts/po/dpkg-dev.pot 2006-06-04 12:24:47 UTC (rev 375)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: [EMAIL PROTECTED]"
-"POT-Creation-Date: 2006-05-31 06:18+0300\n"
+"POT-Creation-Date: 2006-06-04 15:15+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <[EMAIL PROTECTED]>\n"
"Language-Team: LANGUAGE <[EMAIL PROTECTED]>\n"
@@ -2210,87 +2210,88 @@
"Usage: %s [<option>]\n"
"\n"
"Options:\n"
+" -l<changelog> use <changelog> as the file name when reporting.\n"
" -v<versionsince> print changes since <versionsince>.\n"
" -h, --help print this help message.\n"
" --version print program version.\n"
msgstr ""
-#: scripts/changelog/debian.pl:56
+#: scripts/changelog/debian.pl:59
#, perl-format
msgid "unknown option or argument `%s'"
msgstr ""
-#: scripts/changelog/debian.pl:77
+#: scripts/changelog/debian.pl:80
msgid "-v<since> option specifies most recent version"
msgstr ""
-#: scripts/changelog/debian.pl:84
+#: scripts/changelog/debian.pl:87
#, perl-format
msgid "found start of entry where expected %s"
msgstr ""
-#: scripts/changelog/debian.pl:90
+#: scripts/changelog/debian.pl:93
#, perl-format
msgid "bad key-value after `;': `%s'"
msgstr ""
-#: scripts/changelog/debian.pl:92
+#: scripts/changelog/debian.pl:95
#, perl-format
msgid "repeated key-value %s"
msgstr ""
-#: scripts/changelog/debian.pl:95
+#: scripts/changelog/debian.pl:98
msgid "badly formatted urgency value"
msgstr ""
-#: scripts/changelog/debian.pl:99
+#: scripts/changelog/debian.pl:102
#, perl-format
msgid "unknown urgency value %s - comparing very low"
msgstr ""
-#: scripts/changelog/debian.pl:102
+#: scripts/changelog/debian.pl:105
#, perl-format
msgid "urgency >%s<"
msgstr ""
-#: scripts/changelog/debian.pl:120
+#: scripts/changelog/debian.pl:123
#, perl-format
msgid "unknown key-value key %s - copying to %s"
msgstr ""
-#: scripts/changelog/debian.pl:127
+#: scripts/changelog/debian.pl:130
msgid "badly formatted heading line"
msgstr ""
-#: scripts/changelog/debian.pl:130
+#: scripts/changelog/debian.pl:133
#, perl-format
msgid "found trailer where expected %s"
msgstr ""
-#: scripts/changelog/debian.pl:137
+#: scripts/changelog/debian.pl:140
msgid "badly formatted trailer line"
msgstr ""
-#: scripts/changelog/debian.pl:140
+#: scripts/changelog/debian.pl:143
#, perl-format
msgid "found change data where expected %s"
msgstr ""
-#: scripts/changelog/debian.pl:146
+#: scripts/changelog/debian.pl:149
#, perl-format
msgid "found blank line where expected %s"
msgstr ""
-#: scripts/changelog/debian.pl:149
+#: scripts/changelog/debian.pl:152
msgid "unrecognised line"
msgstr ""
-#: scripts/changelog/debian.pl:153
+#: scripts/changelog/debian.pl:156
#, perl-format
msgid "found eof where expected %s"
msgstr ""
-#: scripts/changelog/debian.pl:165 scripts/changelog/debian.pl:166
+#: scripts/changelog/debian.pl:170 scripts/changelog/debian.pl:175
#, perl-format
-msgid "%s, at changelog line %d"
+msgid "%s, at file %s line %d"
msgstr ""
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]