Commit 1f1211ce authored by Jelmer Vernooij's avatar Jelmer Vernooij

Support removing upstart conffiles as part of upgrade to debhelper 11.

parent bdd55484
Pipeline #64230 failed with stages
in 2 minutes and 41 seconds
......@@ -9,6 +9,8 @@ lintian-brush (0.22) UNRELEASED; urgency=medium
10.
* Don't complain about reformatting issues if no changes have been
made.
* Support removing upstart conffiles as part of upgrade to debhelper
11.
-- Jelmer Vernooij <jelmer@debian.org> Sat, 10 Aug 2019 16:49:28 +0000
......
......@@ -187,6 +187,20 @@ def upgrade_to_debhelper_11():
return line
update_rules(cb)
for name in os.listdir('debian'):
parts = name.split('.')
if len(parts) < 2 or parts[-1] != 'upstart':
continue
if len(parts) == 3:
package = parts[0]
service = parts[1]
elif len(parts) == 2:
package = service = parts[0]
os.unlink(os.path.join('debian', name))
subitems.add('Drop obsolete upstart file %s.' % name)
with open('debian/%s.maintscript' % package, 'a') as f:
f.write('rm_conffile /etc/init/%s.conf %s\n' % (
service, os.environ['CURRENT_VERSION']))
upgrade_to_debhelper = {
......
start on runlevel [2345]
stop on runlevel [016]
respawn
pre-start script
/usr/lib/bird/prepare-environment
/usr/sbin/bird -p
end script
script
. /etc/bird/envvars
exec /usr/sbin/blah
end script
Source: f2fs-tools
Section: admin
Priority: optional
Maintainer: Jelmer Vernooij <jelmer@debian.org>
Build-Depends:
debhelper (>= 10),
pkg-config,
uuid-dev
Standards-Version: 4.2.0
Package: blah
Architecture: linux-any
Depends: libf2fs5 (= ${binary:Version}), libf2fs-format4 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
Description: Tools for Flash-Friendly File System
F2FS is a new filesystem for Linux aimed at NAND flash memory-based storage
devices, such as SSD, eMMC, and SD cards. It is based on Log-structured File
System (LFS).
Bump debhelper from old 10 to 12.
+ Drop obsolete upstart file blah.blah.upstart.
Fixed-Lintian-Tags: package-uses-old-debhelper-compat-version
Source: f2fs-tools
Section: admin
Priority: optional
Maintainer: Jelmer Vernooij <jelmer@debian.org>
Build-Depends:
pkg-config,
uuid-dev,
debhelper-compat (= 12)
Standards-Version: 4.2.0
Package: blah
Architecture: linux-any
Depends: libf2fs5 (= ${binary:Version}), libf2fs-format4 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
Description: Tools for Flash-Friendly File System
F2FS is a new filesystem for Linux aimed at NAND flash memory-based storage
devices, such as SSD, eMMC, and SD cards. It is based on Log-structured File
System (LFS).
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment