|
Link Here
|
| 1 |
--- gdist/icons.py.orig 2013-09-25 12:31:19.000000000 +0200 |
|
|
| 2 |
+++ gdist/icons.py 2014-04-23 11:06:22.328926759 +0200 |
| 3 |
@@ -35,13 +35,16 @@ |
| 4 |
prefix = None |
| 5 |
|
| 6 |
def initialize_options(self): |
| 7 |
- pass |
| 8 |
+ self.outfiles = [] |
| 9 |
|
| 10 |
def finalize_options(self): |
| 11 |
self.set_undefined_options('install', |
| 12 |
('root', 'root'), |
| 13 |
('install_base', 'prefix')) |
| 14 |
|
| 15 |
+ def get_outputs(self): |
| 16 |
+ return self.outfiles |
| 17 |
+ |
| 18 |
def run(self): |
| 19 |
# install into hicolor icon theme |
| 20 |
basepath = os.path.join(self.prefix, 'share', 'icons', 'hicolor') |
| 21 |
@@ -52,11 +55,13 @@ |
| 22 |
|
| 23 |
scalable = os.path.join(local, "scalable", "apps") |
| 24 |
scalable_dst = os.path.join(basepath, "scalable", "apps") |
| 25 |
- self.copy_tree(scalable, scalable_dst) |
| 26 |
+ out = self.copy_tree(scalable, scalable_dst) |
| 27 |
+ self.outfiles.extend(out) |
| 28 |
|
| 29 |
png = os.path.join(local, "64x64", "apps") |
| 30 |
png_dst = os.path.join(basepath, "64x64", "apps") |
| 31 |
- self.copy_tree(png, png_dst) |
| 32 |
+ out = self.copy_tree(png, png_dst) |
| 33 |
+ self.outfiles.extend(out) |
| 34 |
|
| 35 |
# this fails during packaging.. so ignore the outcome |
| 36 |
subprocess.call(['gtk-update-icon-cache', basepath]) |
| 37 |
@@ -66,4 +71,5 @@ |
| 38 |
if self.root is not None: |
| 39 |
basepath = change_root(self.root, basepath) |
| 40 |
|
| 41 |
- self.copy_tree(png, basepath) |
| 42 |
+ out = self.copy_tree(png, basepath) |
| 43 |
+ self.outfiles.extend(out) |
| 44 |
--- gdist/man.py.orig 2013-09-25 12:31:19.000000000 +0200 |
| 45 |
+++ gdist/man.py 2014-04-23 11:10:03.793912457 +0200 |
| 46 |
@@ -29,7 +29,7 @@ |
| 47 |
root = None |
| 48 |
|
| 49 |
def initialize_options(self): |
| 50 |
- pass |
| 51 |
+ self.outfiles = [] |
| 52 |
|
| 53 |
def finalize_options(self): |
| 54 |
self.set_undefined_options('install', ('root', 'root'), ('install_base', 'prefix')) |
| 55 |
@@ -38,15 +38,22 @@ |
| 56 |
if not man_page[-1].isdigit(): |
| 57 |
raise SystemExit("%r has no section" % man_page) |
| 58 |
|
| 59 |
+ def get_outputs(self): |
| 60 |
+ return self.outfiles |
| 61 |
+ |
| 62 |
def run(self): |
| 63 |
basepath = os.path.join(self.prefix, 'share', 'man') |
| 64 |
if self.root != None: |
| 65 |
basepath = change_root(self.root, basepath) |
| 66 |
- self.mkpath(basepath) |
| 67 |
+ out = self.mkpath(basepath) |
| 68 |
+ self.outfiles.extend(out or []) |
| 69 |
for man_page in self.man_pages: |
| 70 |
manpath = os.path.join(basepath, "man" + man_page[-1]) |
| 71 |
self.mkpath(manpath) |
| 72 |
+ out = self.mkpath(manpath) |
| 73 |
+ self.outfiles.extend(out or []) |
| 74 |
fullpath = os.path.join(manpath, os.path.basename(man_page)) |
| 75 |
- self.copy_file(man_page, fullpath) |
| 76 |
+ (out, _) = self.copy_file(man_page, fullpath) |
| 77 |
+ self.outfiles.append(out) |
| 78 |
|
| 79 |
__all__ = ["install_man"] |
| 80 |
--- gdist/po.py.orig 2013-09-25 12:31:19.000000000 +0200 |
| 81 |
+++ gdist/po.py 2014-04-23 11:06:22.329926420 +0200 |
| 82 |
@@ -149,7 +149,7 @@ |
| 83 |
root = None |
| 84 |
|
| 85 |
def initialize_options(self): |
| 86 |
- pass |
| 87 |
+ self.outfiles = [] |
| 88 |
|
| 89 |
def finalize_options(self): |
| 90 |
self.set_undefined_options('build', ('build_base', 'build_base')) |
| 91 |
@@ -159,6 +159,9 @@ |
| 92 |
('install_base', 'install_base'), |
| 93 |
('skip_build', 'skip_build')) |
| 94 |
|
| 95 |
+ def get_outputs(self): |
| 96 |
+ return self.outfiles |
| 97 |
+ |
| 98 |
def run(self): |
| 99 |
if not self.skip_build: |
| 100 |
self.run_command('build_mo') |
| 101 |
@@ -166,6 +169,7 @@ |
| 102 |
dest = os.path.join(self.install_base, "share", "locale") |
| 103 |
if self.root != None: |
| 104 |
dest = change_root(self.root, dest) |
| 105 |
- self.copy_tree(src, dest) |
| 106 |
+ out = self.copy_tree(src, dest) |
| 107 |
+ self.outfiles.extend(out) |
| 108 |
|
| 109 |
__all__ = ["build_mo", "install_mo", "po_stats", "check_pot"] |
| 110 |
--- gdist/shortcuts.py.orig 2013-09-25 12:31:19.000000000 +0200 |
| 111 |
+++ gdist/shortcuts.py 2014-04-23 11:11:31.218905210 +0200 |
| 112 |
@@ -66,7 +66,7 @@ |
| 113 |
root = None |
| 114 |
|
| 115 |
def initialize_options(self): |
| 116 |
- pass |
| 117 |
+ self.outfiles = [] |
| 118 |
|
| 119 |
def finalize_options(self): |
| 120 |
self.set_undefined_options('build', ('build_base', 'build_base')) |
| 121 |
@@ -79,6 +79,9 @@ |
| 122 |
self.set_undefined_options( |
| 123 |
'build_shortcuts', ('shortcuts', 'shortcuts')) |
| 124 |
|
| 125 |
+ def get_outputs(self): |
| 126 |
+ return self.outfiles |
| 127 |
+ |
| 128 |
def run(self): |
| 129 |
if not self.skip_build: |
| 130 |
self.run_command('build_shortcuts') |
| 131 |
@@ -86,10 +89,13 @@ |
| 132 |
if self.root != None: |
| 133 |
basepath = change_root(self.root, basepath) |
| 134 |
srcpath = os.path.join(self.build_base, 'share', 'applications') |
| 135 |
- self.mkpath(basepath) |
| 136 |
+ out = self.mkpath(basepath) |
| 137 |
+ self.outfiles.extend(out or []) |
| 138 |
for shortcut in self.shortcuts: |
| 139 |
fullsrc = os.path.join(srcpath, shortcut) |
| 140 |
fullpath = os.path.join(basepath, shortcut) |
| 141 |
self.copy_file(fullsrc, fullpath) |
| 142 |
+ (out, _) = self.copy_file(fullsrc, fullpath) |
| 143 |
+ self.outfiles.append(out) |
| 144 |
|
| 145 |
__all__ = ["build_shortcuts", "install_shortcuts"] |