# ex:ts=8 sw=4:
-# $OpenBSD: PackingElement.pm,v 1.287 2023/06/13 09:07:17 espie Exp $
+# $OpenBSD: PackingElement.pm,v 1.288 2023/07/04 13:58:01 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
{
if ($s =~ m/^(\d{4})\-(\d{2})\-(\d{2})T(\d{2})\:(\d{2})\:(\d{2})Z$/) {
my ($year, $month, $day, $hour, $min, $sec) =
- ($1 - 1900, $2-1, $3, $4, $5, $6);
+ ($1 - 1900, $2-1, $3, $4, $5, $6);
require POSIX;
my $oldtz = $ENV{TZ};
$ENV{TZ} = 'UTC';
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgCreate.pm,v 1.192 2023/06/20 14:50:05 espie Exp $
+# $OpenBSD: PkgCreate.pm,v 1.193 2023/07/04 13:58:01 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
my $fname = $self->fullname;
for (my $i = 1; ; $i++) {
if (-e "$state->{base}/$fname-$i") {
- my $e = OpenBSD::PackingElement::File->add($plist, $self->name."-".$i);
+ my $e = OpenBSD::PackingElement::File->add($plist,
+ $self->name."-".$i);
$e->compute_checksum($e, $state, $state->{base});
} else {
last;
} elsif ($self->spec->is_valid) {
my @m = $self->spec->filter($self->{def});
if (@m == 0) {
- $state->error("\@#1 #2\n pattern #3 doesn't match default #4\n",
+ $state->error(
+ "\@#1 #2\n".
+ " pattern #3 doesn't match default #4\n",
$self->keyword, $self->stringize,
$self->{pattern}, $self->{def});
}
my @l = $self->parse($self->name);
if (defined $l[0]) {
if (!$unsubst =~ m/\$\{LIB$l[0]_VERSION\}/) {
- $state->error("Incorrectly versioned shared library: #1", $unsubst);
+ $state->error(
+ "Incorrectly versioned shared library: #1",
+ $unsubst);
}
} else {
$state->error("Invalid shared library #1", $unsubst);