- Every change to config file by package-manager causing more newlines to

be added to 

  ldflags =

  line.

  If there is no value set to the variable ("") or it is set to None, than
  put a comment in front of that line.
This commit is contained in:
Faik Uygur
2007-07-04 12:09:21 +00:00
parent d471fd8965
commit 6f0247127d
+4 -2
View File
@@ -77,8 +77,10 @@ class Install(install):
and not m[0].endswith('__')] and not m[0].endswith('__')]
for member in section_members: for member in section_members:
pisiconf.write("%s = %s\n" % (member[0], member[1])) if member[1] == None or member[1] == "":
pisiconf.write("# %s = %s\n" % (member[0], member[1]))
else:
pisiconf.write("%s = %s\n" % (member[0], member[1]))
pisiconf.write('\n') pisiconf.write('\n')