Merge lp:~jtatum/mago/packaging-recipe-patch into lp:~mago-contributors/mago/packaging-recipe

Proposed by James Tatum
Status: Merged
Merged at revision: not available
Proposed branch: lp:~jtatum/mago/packaging-recipe-patch
Merge into: lp:~mago-contributors/mago/packaging-recipe
Diff against target: None lines
To merge this branch: bzr merge lp:~jtatum/mago/packaging-recipe-patch
Reviewer Review Type Date Requested Status
Javier Collado (community) Approve
Review via email: mp+11577@code.launchpad.net
To post a comment you must log in.
Revision history for this message
James Tatum (jtatum) wrote :

Removing patch from packaging recipe - adding it in Debian branch

Revision history for this message
Javier Collado (javier.collado) wrote :

 review approve

James Tatum wrote:
> James Tatum has proposed merging lp:~jtatum/mago/packaging-recipe-patch into lp:~mago-contributors/mago/packaging-recipe.
>
> Requested reviews:
> Javier Collado (javier.collado)
>
> Removing patch from packaging recipe - adding it in Debian branch
>

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'mago.recipe'
--- mago.recipe 2009-09-10 08:54:45 +0000
+++ mago.recipe 2009-09-10 21:43:12 +0000
@@ -1,4 +1,3 @@
1# bzr-builder format 0.2 deb-version 0.2-0ubuntu1~rev{revno}1# bzr-builder format 0.2 deb-version 0.2-0ubuntu1~rev{revno}
2lp:mago2lp:mago
3nest debian lp:~mago-contributors/mago/debian debian3nest debian lp:~mago-contributors/mago/debian debian
4run patch setup.py < ../../setup.py.patch
54
=== removed file 'setup.py.patch'
--- setup.py.patch 2009-09-09 06:51:41 +0000
+++ setup.py.patch 1970-01-01 00:00:00 +0000
@@ -1,42 +0,0 @@
1--- setup.py 2009-09-09 08:44:18.000000000 +0200
2+++ setup.py.new 2009-09-09 08:44:12.000000000 +0200
3@@ -86,6 +86,26 @@
4 'TESTS_SHARE = "/usr/share/mago"'})
5
6
7+def rlist(prefix, dirs):
8+ """
9+ Recursively list files to be installed and installation prefix to
10+ path
11+ """
12+ files = []
13+
14+ def add_files(acc, dirname, fnames):
15+ fnames = [os.path.join(dirname, fname)
16+ for fname in fnames]
17+ fnames = [fname for fname in fnames
18+ if os.path.isfile(fname)]
19+ acc.append((os.path.join(prefix, dirname),
20+ fnames))
21+
22+ for dir in dirs:
23+ os.path.walk(dir, add_files, files)
24+ return files
25+
26+
27 setup(
28 name = "mago",
29 version = changelog_version(),
30@@ -97,7 +117,11 @@
31 This project provides a library and scripts for mago.
32 """,
33 data_files = [
34- ("share/mago", ["report.xsl", "conffile.ini"])],
35+ ("share/mago", ["report.xsl", "conffile.ini"])] \
36+ + rlist("share/mago-test",
37+ ["evolution", "gedit", "gnome-screenshot",
38+ "indicator-applet", "notify-osd", "pidgin",
39+ "seahorse", "ubuntu-menu", "update-manager"]),
40 scripts = ["bin/mago"],
41 packages = ["mago",
42 "mago.application",

Subscribers

People subscribed via source and target branches

to all changes: