- print >>f, "Description:",sourceName,"(auto-debuild)"
- print >>f, " Package auto-generated by auto-debuild."
- files.append(os.path.join(debDir, "%s_%s_%s.deb" % (binaryName, version, arch)))
- # debug package
- if dbgPackage:
- print >>f, ""
- print >>f, "Package:",binaryName+"-dbg"
- print >>f, "Section: debug"
- print >>f, "Priority: extra"
- print >>f, "Architecture:",packageArchitecture
- writeDependency(f, "Depends", ["${misc:Depends}", binaryName+" (= ${binary:Version})"])
- print >>f, "Description:",sourceName,"debug smbols (auto-debuild)"
- print >>f, " Package containing debug symbols for "+sourceName+", auto-generated by auto-debuild."
- files.append(os.path.join(debDir, "%s-dbg_%s_%s.deb" % (binaryName, version, arch)))
+ print("Description:",sourceName,"(auto-debuild)", file=f)
+ print(" Package auto-generated by auto-debuild.", file=f)
+ files.append(os.path.join(debDir, "{}_{}_{}.deb".format(binaryName, version, arch)))
+ files.append(os.path.join(debDir, "{}-dbgsym_{}_{}.deb".format(binaryName, version, arch)))