Merge lp:~dobey/ubuntuone-client-data/move-icons into lp:ubuntuone-client-data

Proposed by dobey on 2012-09-14
Status: Merged
Approved by: dobey on 2012-09-14
Approved revision: 4
Merged at revision: 4
Proposed branch: lp:~dobey/ubuntuone-client-data/move-icons
Merge into: lp:ubuntuone-client-data
Diff against target: 66 lines (+9/-11)
1 file modified
setup.py (+9/-11)
To merge this branch: bzr merge lp:~dobey/ubuntuone-client-data/move-icons
Reviewer Review Type Date Requested Status
Diego Sarmentero (community) 2012-09-14 Approve on 2012-09-14
Review via email: mp+124425@code.launchpad.net

Commit Message

Move the icons under a data/ directory for distutils-extra.

To post a comment you must log in.
Diego Sarmentero (diegosarmentero) wrote :

+1

review: Approve
Ubuntu One Auto Pilot (otto-pilot) wrote :

The attempt to merge lp:~dobey/ubuntuone-client-data/move-icons into lp:ubuntuone-client-data failed. Below is the output from the failed tests.

running build
running build_i18n
intltool-update -p -g ubuntuone-client-data
running build_icons
running build_help
running clean
WARNING: the following files are not recognized by DistUtilsExtra.auto:
  po/LINGUAS
  run-tests
  ubuntuone-icons.svg
  ubuntuone.icns
  ubuntuone.ico

+ python ./setup.py build clean
++ which python3
+ '[' -x /usr/bin/python3 ']'
+ python3 ./setup.py build clean
To build this program you need https://launchpad.net/python-distutils-extra

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'data'
2=== renamed directory 'icons' => 'data/icons'
3=== modified file 'setup.py'
4--- setup.py 2012-09-05 21:15:26 +0000
5+++ setup.py 2012-09-14 13:51:05 +0000
6@@ -74,6 +74,7 @@
7 '128x128',
8 '256x256',
9 ]
10+ICONSDIR = os.path.join(os.getcwd(), 'data', 'icons')
11
12
13 def touch(filename, timestamp=None):
14@@ -92,15 +93,14 @@
15
16 def run(self):
17 """Generate the icons."""
18- iconsdir = os.path.join(os.getcwd(), 'icons')
19- if os.path.exists(iconsdir):
20- dirtime = os.stat(iconsdir).st_mtime
21+ if os.path.exists(ICONSDIR):
22+ dirtime = os.stat(ICONSDIR).st_mtime
23 filetime = os.stat(ICON_SVG_FILE).st_mtime
24 if (dirtime >= filetime):
25- touch(iconsdir)
26+ touch(ICONSDIR)
27 return
28 else:
29- os.makedirs(iconsdir)
30+ os.makedirs(ICONSDIR)
31
32 icontool_render = find_executable('icontool-render')
33 if icontool_render is None:
34@@ -108,10 +108,10 @@
35 return
36
37 for size in ICON_RENDER_SIZES:
38- args = [icontool_render, '-s', size, '-o', iconsdir, ICON_SVG_FILE]
39+ args = [icontool_render, '-s', size, '-o', ICONSDIR, ICON_SVG_FILE]
40 subprocess.call(args)
41
42- touch(iconsdir)
43+ touch(ICONSDIR)
44
45
46 class BuildICNS(BuildPNG):
47@@ -137,8 +137,7 @@
48
49 missing = []
50 for size in ICNS_EMBED_SIZES:
51- orig_file = os.path.join(os.getcwd(), 'icons',
52- size, 'apps', 'ubuntuone.png')
53+ orig_file = os.path.join(ICONSDIR, size, 'apps', 'ubuntuone.png')
54 link_file = os.path.join(icns_dir, 'icon_' + size + '.png')
55 if os.path.exists(orig_file):
56 if os.path.exists(link_file):
57@@ -172,8 +171,7 @@
58
59 convert_args = [convert]
60 for size in ICO_EMBED_SIZES:
61- orig_file = os.path.join(os.getcwd(), 'icons',
62- size, 'apps', 'ubuntuone.png')
63+ orig_file = os.path.join(ICONSDIR, size, 'apps', 'ubuntuone.png')
64 if os.path.exists(orig_file):
65 convert_args.append(orig_file)
66 else:

Subscribers

People subscribed via source and target branches

to all changes: