chiark / gitweb /
sysv-generator: Re-fix .sh suffix handling
authorMartin Pitt <martin.pitt@ubuntu.com>
Wed, 28 Jan 2015 07:00:28 +0000 (08:00 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Wed, 28 Jan 2015 07:00:28 +0000 (08:00 +0100)
commit40780877c19ef408da8ab21f4156cfc153f94b5c
treeab38f84d165026ccebea4ca5e3275231216271cd
parent78eb158a20e2bee772f6e49d8b432b98f68cbb55
sysv-generator: Re-fix .sh suffix handling

Commit 4e48855534 caused the .sh suffix to be stripped from the original
"filename", which caused the generated units to call the wrong init.d script.
Only use the .sh stripped file name for comparing with Provides:, not for
generating the Exec*= lines.

Spotted by sysv-generator-test.
src/sysv-generator/sysv-generator.c