stefan pushed a commit to branch master.

http://git.enlightenment.org/admin/release-management.git/commit/?id=c214ec1af922ef73c8d5df2ca4a67d04f70f8050

commit c214ec1af922ef73c8d5df2ca4a67d04f70f8050
Author: Stefan Schmidt <s.schm...@samsung.com>
Date:   Mon Apr 13 14:28:50 2015 +0200

    distros: Add the current date as last updated date for later output table.
    
    Need to get my very rusty python knowledge up to speed here.
---
 distributions_versions_fetch_script.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/distributions_versions_fetch_script.py 
b/distributions_versions_fetch_script.py
index 1681f7c..a9f4781 100755
--- a/distributions_versions_fetch_script.py
+++ b/distributions_versions_fetch_script.py
@@ -3,6 +3,7 @@
 import re
 from lxml import html
 import requests
+import datetime
 
 def grep_version_string(repo_listing, pkg_name_prefix):
        regex = pkg_name_prefix + "[0-9.]+"
@@ -26,6 +27,8 @@ def scrap_page(url, xpath, pkg_name_prefix):
        return None
 
 def main():
+       print "**Last Updated: " + str(datetime.date.today()) + "**"
+
        distributions_data  = [
                                                        ("arch", 
"https://www.archlinux.org/packages/extra/x86_64/efl/";, 
"/html/body/div[@id=\"content\"]/div[@id=\"pkgdetails\"]/h2/text()", "efl "),
                                                        ("ubuntu", 
"https://launchpad.net/ubuntu/vivid/amd64/libecore-con1/1.8.6-2.1ubuntu1";, 
"//*[@id=\"portlet-details\"]/div/dl[1]/dd/text()", ""),

-- 


Reply via email to