Skip to content

Commit 1f24263

Browse files
authored
Merge pull request #333 from dirkmueller/copyright_fixup
Update copyright header
2 parents b63fe43 + dc742b7 commit 1f24263

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

spec_cleaner/rpmcleaner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def run(self) -> None:
421421

422422
def __del__(self) -> None:
423423
"""Close the input and output files."""
424-
if self.fin:
424+
if hasattr(self, 'fin'):
425425
self.fin.close()
426-
if self.fout:
426+
if hasattr(self, 'fout'):
427427
self.fout.close()

spec_cleaner/rpmcopyright.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, options):
2222
self.year = options['copyright_year']
2323
self.copyrights = []
2424
self.buildrules = []
25-
self.distro_copyright = '# Copyright (c) {0} SUSE LLC'.format(self.year)
25+
self.distro_copyright = '# Copyright (c) {0} SUSE LLC and contributors'.format(self.year)
2626
self.vimmodeline = ''
2727

2828
def _add_pkg_header(self):

tests/header/header.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# spec file for package header
44
#
5-
# Copyright (c) 2013 SUSE LLC
5+
# Copyright (c) 2013 SUSE LLC and contributors
66
# Copyright (c) 2012 Dominique Leuenberger, Amsterdam, The Netherlands
77
#
88
# All modifications and additions to the file contributed by third parties

tests/in/rpmpreamble.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Summary: Small Embeddable HTTP Server Library
2525
License: LGPL-2.1+
2626
Group: Productivity/Networking/Web/Servers
2727
Url: https://www.gnu.org/software/libmicrohttpd/
28-
Source0: http://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz
29-
Source1: http://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz.sig
28+
Source0: http://ftpmirror.gnu.org/libmicrohttpd/%{name}-%{version}.tar.gz
29+
Source1: http://ftpmirror.gnu.org/libmicrohttpd/%{name}-%{version}.tar.gz.sig
3030
Source2: libmicrohttpd.keyring
3131
# PATCH-WORKAROUND-OPENSUSE: the threads have a problem deadlocking (in OBS)
3232
Patch1: disable-stalling-test.patch

tests/out-minimal/rpmpreamble.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Summary: Small Embeddable HTTP Server Library
2525
License: LGPL-2.1-or-later
2626
Group: Productivity/Networking/Web/Servers
2727
URL: https://www.gnu.org/software/libmicrohttpd/
28-
Source0: http://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz
29-
Source1: http://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz.sig
28+
Source0: http://ftpmirror.gnu.org/libmicrohttpd/%{name}-%{version}.tar.gz
29+
Source1: http://ftpmirror.gnu.org/libmicrohttpd/%{name}-%{version}.tar.gz.sig
3030
Source2: libmicrohttpd.keyring
3131
# PATCH-WORKAROUND-OPENSUSE: the threads have a problem deadlocking (in OBS)
3232
Patch1: disable-stalling-test.patch

tests/out/rpmpreamble.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Summary: Small Embeddable HTTP Server Library
2525
License: LGPL-2.1-or-later
2626
Group: Productivity/Networking/Web/Servers
2727
URL: https://www.gnu.org/software/libmicrohttpd/
28-
Source0: http://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz
29-
Source1: http://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz.sig
28+
Source0: https://ftpmirror.gnu.org/libmicrohttpd/%{name}-%{version}.tar.gz
29+
Source1: https://ftpmirror.gnu.org/libmicrohttpd/%{name}-%{version}.tar.gz.sig
3030
Source2: libmicrohttpd.keyring
3131
# PATCH-WORKAROUND-OPENSUSE: the threads have a problem deadlocking (in OBS)
3232
Patch1: disable-stalling-test.patch

0 commit comments

Comments
 (0)