- Fix expand option not to fail if files are missing since socket activation

service files are not shipped in the sdist
This commit is contained in:
Scott Kitterman
2020-01-04 01:47:24 -05:00
parent def89db250
commit a8bf7104bc
2 changed files with 28 additions and 21 deletions
+4
View File
@@ -1,3 +1,7 @@
1.2.1
- Fix expand option not to fail if files are missing since socket activation
service files are not shipped in the sdist
1.2.0 2020-01-03
- Add support for SigningTable, KeyTable, and KeyTableEd25519 (LP: #1797397)
- Add support for specifying MinimumKeyBits for RSA signatures
+3
View File
@@ -56,6 +56,7 @@ class FileMacroExpand(distutils.cmd.Command):
'system/socket-activation/dkimpy-milter.socket', ]
for infile in files:
outfile = ''
try:
filein = open(infile + '.in')
for line in filein:
for function in ["@SYSCONFDIR@", "@CONFDIR@", "@SBINDIR@", "@BINDIR@", "@RUNSTATEDIR@"]:
@@ -76,6 +77,8 @@ class FileMacroExpand(distutils.cmd.Command):
for line in outfile:
out.write(line)
out.close()
except FileNotFoundError as x:
pass
kw = {} # Work-around for lack of 'or' requires in setuptools.
try: