diff options
author | 2013-10-13 09:11:14 +0000 | |
---|---|---|
committer | 2013-10-13 09:11:14 +0000 | |
commit | 6d7a788736214ed3f054bb5659eec1c389b388dd (patch) | |
tree | 7ce35260fd7037600d044c5a33bb7a14f8687125 /src/gwn | |
parent | get_packages_url: Use it to gather all portage statistics (diff) | |
download | gentoo-6d7a788736214ed3f054bb5659eec1c389b388dd.tar.gz gentoo-6d7a788736214ed3f054bb5659eec1c389b388dd.tar.bz2 gentoo-6d7a788736214ed3f054bb5659eec1c389b388dd.zip |
get_packages_url.py: Don't hardcode arch list anymore
Diffstat (limited to 'src/gwn')
-rw-r--r-- | src/gwn/get_packages_url.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gwn/get_packages_url.py b/src/gwn/get_packages_url.py index 9d842c1904..fd79b51311 100644 --- a/src/gwn/get_packages_url.py +++ b/src/gwn/get_packages_url.py @@ -91,7 +91,10 @@ print "\n== Chart URL == \n" base = 'http://chart.apis.google.com/chart?cht=bhs&chs=800x350&chd=t:' tail = '&chco=45347B,6A5C95&chbh=15&chxt=x,y&chxr=0,0,12250&chdl=Stable|Testing' labx = '&chxl=0:1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|' -laby = '1:|x86-fbsd|x86|sparc-fbsd|sparc|sh|s390|ppc64|ppc|mips|m68k|ia64|hppa|arm|amd6-fbsd|amd64|alpha' +laby = '1:' + +for x in reversed(range(0, len(arch))): + laby = laby + "|" + arch[x] final = base + string1 + '|' + string2 + tail + labx + laby print final |