gns-deb-diff

automate the documentation of the differences between gNewSense and Debian.
git clone git://git.ricketyspace.net/gns-deb-diff.git
Log | Files | Refs

commit 78231eb914da59951d5cd494e9f23a54c8b179e1
parent b9248aae87ba6fb47fdf0bcca5e7cd59ce94b7ba
Author: rsiddharth <s@ricketyspace.net>
Date:   Sat, 17 Dec 2016 04:11:52 +0000

Move around `write_wiki_page`.

* gd_diff.py (write_wiki_page): Move to different place.

Diffstat:
gd_diff.py | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/gd_diff.py b/gd_diff.py @@ -206,15 +206,6 @@ def wiki_page_dir(release): return wd_release -def write_wiki_page(release, content): - """Write wiki page `content` to `release`' last.rev file. - - """ - wd_release = wiki_page_dir(release) - wp_file = os.path.join(wd_release, 'last.rev') - write_file(wp_file, content) - - def configured_p(): """Returns True if gns-deb-diff is configured; False otherwise. """ @@ -395,3 +386,12 @@ def generate_wiki_page(release): wiki_page = gns_wiki_header() + '\n' + wiki_table return pkgs_noreadmes, wiki_page + + +def write_wiki_page(release, content): + """Write wiki page `content` to `release`' last.rev file. + + """ + wd_release = wiki_page_dir(release) + wp_file = os.path.join(wd_release, 'last.rev') + write_file(wp_file, content)