summaryrefslogtreecommitdiffstats
path: root/scripts/Dpkg
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-07 13:31:23 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-07 13:31:23 +0000
commit0d707535134d076e4074fc42997746f6bded1660 (patch)
tree629e636f10bbaaeea3603f6d9e02c0c4fad61211 /scripts/Dpkg
parentReleasing progress-linux version 1.22.7-0.0~progress7.99u1. (diff)
downloaddpkg-0d707535134d076e4074fc42997746f6bded1660.tar.xz
dpkg-0d707535134d076e4074fc42997746f6bded1660.zip
Merging upstream version 1.22.8.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'scripts/Dpkg')
-rw-r--r--scripts/Dpkg/Archive/Ar.pm16
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/Dpkg/Archive/Ar.pm b/scripts/Dpkg/Archive/Ar.pm
index 97d5711..2afab42 100644
--- a/scripts/Dpkg/Archive/Ar.pm
+++ b/scripts/Dpkg/Archive/Ar.pm
@@ -162,16 +162,16 @@ sub _read_buf {
my $offs = $self->{fh}->tell();
my $n = $self->{fh}->read($buf, $size);
if (not defined $n) {
- # TRANSLATORS: The first %s string is either "archive magic" or
- # "file header".
- syserr(g_('cannot read %s at offset %d from archive %s'),
+ # TRANSLATORS: The first %s string is either "the archive magic" or
+ # "a file header".
+ syserr(g_('cannot read %s; archive %s at offset %d'),
$subject, $offs, $self->{filename});
} elsif ($n == 0) {
return;
} elsif ($n != $size) {
- # TRANSLATORS: The first %s string is either "archive magic" or
- # "file header".
- error(g_('%s at offset %d in archive %s is truncated'),
+ # TRANSLATORS: The first %s string is either "the archive magic" or
+ # "a file header".
+ error(g_('cannot read %s; archive %s is truncated at offset %d'),
$subject, $offs, $self->{filename});
}
@@ -187,7 +187,7 @@ Reads and parses the archive magic string, and validates it.
sub parse_magic {
my $self = shift;
- my $magic = $self->_read_buf(g_('archive magic'), $AR_MAGIC_LEN)
+ my $magic = $self->_read_buf(g_('the archive magic'), $AR_MAGIC_LEN)
or error(g_('archive %s contains no magic'), $self->{filename});
if ($magic ne $AR_MAGIC) {
@@ -208,7 +208,7 @@ sub parse_member {
my $offs = $self->{fh}->tell();
- my $hdr = $self->_read_buf(g_('file header'), $AR_HDR_LEN)
+ my $hdr = $self->_read_buf(g_('a file header'), $AR_HDR_LEN)
or return;
my $hdr_fmt = 'A16A12A6A6A8A10a2';