summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-11-25 19:51:54 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-11-25 20:06:47 (GMT)
commit0143468ab872e401b20894a680eea3b7c0dfb021 (patch)
tree8d9612f8bff7246ef1538f0b2c090deffdb31b82 /BuildTools
parent3d5f95c825814f6452dc0f3ddba883418ce9575a (diff)
downloadswift-0143468ab872e401b20894a680eea3b7c0dfb021.zip
swift-0143468ab872e401b20894a680eea3b7c0dfb021.tar.bz2
Fixed debian sections, priorities & distributions.
Diffstat (limited to 'BuildTools')
-rwxr-xr-xBuildTools/UpdateDebianChangelog.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/BuildTools/UpdateDebianChangelog.py b/BuildTools/UpdateDebianChangelog.py
index c98863d..d8f8d62 100755
--- a/BuildTools/UpdateDebianChangelog.py
+++ b/BuildTools/UpdateDebianChangelog.py
@@ -17,12 +17,19 @@ if m :
project = m.group(1)
last_version = m.group(2)
+if "dev" in version :
+ distribution = "development"
+elif "beta" in version :
+ distribution = "beta development"
+else :
+ distribution = "release beta development"
+
if last_version != version :
changelog = open(sys.argv[1])
changelog_data = changelog.read()
changelog.close()
changelog = open(sys.argv[1], "w")
- changelog.write(project + " (" + version + "-1)" + " unstable; urgency=low\n\n")
+ changelog.write(project + " (" + version + "-1)" + " " + distribution + "; urgency=low\n\n")
changelog.write(" * Upstream development snapshot\n\n")
changelog.write(" -- Swift Package Maintainer <packages@swift.im> " + email.utils.formatdate() + "\n")
changelog.write("\n")