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 f0a75c4b3a5bf21146e28be6391786fe4478450a
parent fca51ac7858705dbf11b3900d40b40bbe7145aba
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 13 Nov 2016 19:13:56 +0000

Update `mk_pkgs_list` function.

Now returns the path to the file that contains the list of packages.

* gd_diff.py (mk_pkgs_list): New function.
* tests/test_gd_diff.py (test_mk_pkgs_list): Update test.

Diffstat:
gd_diff.py | 1+
tests/test_gd_diff.py | 3+--
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gd_diff.py b/gd_diff.py @@ -265,6 +265,7 @@ def mk_pkgs_list(release): pkgs_file = os.path.join(pkgs_dir(), release) write_file(pkgs_file, pkgs) + return pkgs_file def readmes_dir(release): """Return readmes directory for `release`. diff --git a/tests/test_gd_diff.py b/tests/test_gd_diff.py @@ -287,9 +287,8 @@ class TestGdDiff(object): return self.test_home with mock.patch('os.getenv', new=env): - mk_pkgs_list('parkes') + pkgs_file = mk_pkgs_list('parkes') # test - pkgs_file = os.path.join(pkgs_dir(), 'parkes') assert_equal(read_file(pkgs_file), 'antlr\napt\napt-setup\nautoconf\nautoconf2.59\nautoconf2.64\nbacula\nbase-files\nbase-installer\nbatik\ncairomm\ncdebootstrap\ncfitsio3\nchoose-mirror\nclaws-mail\ndb4.6\ndb4.7\ndb4.8\ndebian-cd\ndebian-edu\ndebian-installer\ndebian-installer-launcher\ndebootstrap\ndesktop-base\ndoc-linux\ndoc-linux-hr\ndoc-linux-it\ndoc-linux-ja\ndoc-linux-pl\nenscript\nepiphany-browser\nfop\nfreetype\ngalaxia\ngdm3\nglibmm2.4\ngnewsense-archive-keyring\ngnome-desktop\ngtkmm2.4\nicedove\niceweasel\nkde4libs\nkdebase\nkdebase-workspace\nkdenetwork\nkernel-wedge\nlensfun\nliferea\nlintian\nlinux-2.6\nlinux-kernel-di-amd64-2.6\nlinux-kernel-di-i386-2.6\nlinux-latest-2.6\nlive-build\nlive-config\nmeta-gnome2\nmplayer\nnet-retriever\nobjcryst-fox\nopenbox-themes\nopenjdk-6\nopenoffice.org\npangomm\nperl-tk\npkgsel\npopularity-contest\npsutils\npython-apt\nscreenlets\nsip4-qt3\nsoftware-center\ntcl8.4\ntcl8.5\ntexlive-extra\ntk8.4\ntk8.5\nupdate-manager\nvim\nwmaker\nxchat\nxdm\nxorg-server\nxserver-xorg-video-siliconmotion\nyeeloong-base\n')