[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [artikulate-data] scripts: Fix scripts for GHNS.
From:       Andreas Cord-Landwehr <cordlandwehr () kde ! org>
Date:       2013-07-31 20:26:45
Message-ID: E1V4cyr-0000gn-OG () scm ! kde ! org
[Download RAW message or body]

Git commit 6ca487aa9d69e27c4fdab32f2a26771242ea45e2 by Andreas Cord-Landwehr.
Committed on 31/07/2013 at 20:26.
Pushed by cordlandwehr into branch 'master'.

Fix scripts for GHNS.

M  +5    -3    scripts/ghns_package_create.py

http://commits.kde.org/artikulate-data/6ca487aa9d69e27c4fdab32f2a26771242ea45e2

diff --git a/scripts/ghns_package_create.py b/scripts/ghns_package_create.py
index ef693bc..8d6e84d 100644
--- a/scripts/ghns_package_create.py
+++ b/scripts/ghns_package_create.py
@@ -108,8 +108,9 @@ if os.listdir(DOWNLOAD_TARS)!=[] :
 			field3.set("e-mail", authors_mail)
 			field3.text = author
 
-			# licence
-			field4 = ET.SubElement(stuff, "license")
+			# license
+			# the spec has a typo and really uses "licence"
+			field4 = ET.SubElement(stuff, "licence")
 			field4.text =  "CC-BY-SA-3.0"
 
 			# summary
@@ -122,8 +123,9 @@ if os.listdir(DOWNLOAD_TARS)!=[] :
 			field5.text = str(datetime.fromtimestamp(os.stat(DOWNLOAD_TARS + "/" + tar).st_mtime))[0:10]
 
 			# release
+			# must be an integer, increasing by every release
 			field6 = ET.SubElement(stuff, "release")
-			field6.text = "1.0"
+			field6.text = "1"
 
 			# releasedate
 			field7 = ET.SubElement(stuff, "releasedate")
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic