allow specifying breaks, replaces
authorRalf Jung <post@ralfj.de>
Sun, 9 Sep 2012 10:50:39 +0000 (12:50 +0200)
committerRalf Jung <post@ralfj.de>
Sun, 9 Sep 2012 10:50:39 +0000 (12:50 +0200)
auto_debuild.py

index ab899838d7ed793f2167340ea6c9f20c399cbac5..e28d34d0ac7edbaa66d668956071e072ad7a804f 100755 (executable)
@@ -177,6 +177,8 @@ def createDebianFiles(config):
                writeDependency(f, "Recommends", config.get('binaryRecommends', []))
                writeDependency(f, "Provides", config.get('binaryProvides', [sourceName]))
                writeDependency(f, "Conflicts", config.get('binaryConflicts', []))
                writeDependency(f, "Recommends", config.get('binaryRecommends', []))
                writeDependency(f, "Provides", config.get('binaryProvides', [sourceName]))
                writeDependency(f, "Conflicts", config.get('binaryConflicts', []))
+               writeDependency(f, "Breaks", config.get('binaryBreaks', []) + config.get('binaryBreaksReplaces', []))
+               writeDependency(f, "Replaces", config.get('binaryReplaces', []) + config.get('binaryBreaksReplaces', []))
                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)))
                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)))