Merge lp:~mandel/ubuntuone-windows-installer/fix_overlay into lp:ubuntuone-windows-installer/beta
- fix_overlay
- Merge into beta
Proposed by
Manuel de la Peña
Status: | Merged |
---|---|
Approved by: | Vincenzo Di Somma |
Approved revision: | 173 |
Merged at revision: | 128 |
Proposed branch: | lp:~mandel/ubuntuone-windows-installer/fix_overlay |
Merge into: | lp:ubuntuone-windows-installer/beta |
Prerequisite: | lp:~mandel/ubuntuone-windows-installer/improve_u1sync_communication |
Diff against target: |
1663 lines (+1284/-100) 17 files modified
.bzrignore (+8/-0) build.number (+1/-1) install/UbuntuOne7.wxs (+756/-1) main.build (+23/-3) src/Version.cs (+3/-3) src/emblems_cache/setup.py (+52/-0) src/emblems_cache/windows_emblems_cache.py (+111/-0) src/icons_overlay/icons_overlay.py (+120/-0) src/icons_overlay/register.py (+20/-0) src/icons_overlay/setup.py (+50/-0) src/sync/u1sync/constants.py (+4/-0) src/sync/u1sync/genericmerge.py (+0/-2) src/sync/u1sync/icons.py (+117/-81) src/sync/u1sync/main.py (+10/-2) src/sync/u1sync/metadata.py (+1/-2) src/sync/u1sync/scan.py (+0/-4) src/sync/u1sync/ubuntuone_optparse.py (+8/-1) |
To merge this branch: | bzr merge lp:~mandel/ubuntuone-windows-installer/fix_overlay |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vincenzo Di Somma (community) | Approve | ||
John Lenton (community) | Approve | ||
Review via email:
|
Commit message
Description of the change
Fix the icon overlays.
To post a comment you must log in.
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
John Lenton (chipaca) : | # |
review:
Approve
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Vincenzo Di Somma (vds) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file '.bzrignore' | |||
2 | --- .bzrignore 2010-10-20 23:09:36 +0000 | |||
3 | +++ .bzrignore 2010-11-02 22:22:53 +0000 | |||
4 | @@ -30,6 +30,8 @@ | |||
5 | 30 | src/Canonical.UbuntuOne.ProcessDispatcher/obj | 30 | src/Canonical.UbuntuOne.ProcessDispatcher/obj |
6 | 31 | src/Canonical.UbuntuOne.ProcessDispatcher.Tests/obj | 31 | src/Canonical.UbuntuOne.ProcessDispatcher.Tests/obj |
7 | 32 | src/Canonical.UbuntuOne.ProcessDispatcher.Tests/bin | 32 | src/Canonical.UbuntuOne.ProcessDispatcher.Tests/bin |
8 | 33 | src/Canonical.UbuntuOne.ShellExtension/bin | ||
9 | 34 | src/Canonical.UbuntuOne.ShellExtension/obj | ||
10 | 33 | src/ServiceTestApp/bin | 35 | src/ServiceTestApp/bin |
11 | 34 | src/ServiceTestApp/obj | 36 | src/ServiceTestApp/obj |
12 | 35 | src/UbuntuOneClient/bin | 37 | src/UbuntuOneClient/bin |
13 | @@ -46,3 +48,9 @@ | |||
14 | 46 | utils/UbuntuOne.msi | 48 | utils/UbuntuOne.msi |
15 | 47 | build.number | 49 | build.number |
16 | 48 | *.user | 50 | *.user |
17 | 51 | src/sync/build | ||
18 | 52 | src/sync/dist | ||
19 | 53 | src/emblems_cache/build | ||
20 | 54 | src/emblems_cache/dist | ||
21 | 55 | src/icons_overlay/build | ||
22 | 56 | src/icons_overlay/dist | ||
23 | 49 | 57 | ||
24 | === modified file 'build.number' | |||
25 | --- build.number 2010-10-12 10:06:34 +0000 | |||
26 | +++ build.number 2010-11-02 22:22:53 +0000 | |||
27 | @@ -1,1 +1,1 @@ | |||
28 | 1 | 1.0.611.8185 | ||
29 | 2 | \ No newline at end of file | 1 | \ No newline at end of file |
30 | 2 | 1.0.623.7177 | ||
31 | 3 | \ No newline at end of file | 3 | \ No newline at end of file |
32 | 4 | 4 | ||
33 | === added file 'data/new.ico' | |||
34 | 5 | Binary files data/new.ico 1970-01-01 00:00:00 +0000 and data/new.ico 2010-11-02 22:22:53 +0000 differ | 5 | Binary files data/new.ico 1970-01-01 00:00:00 +0000 and data/new.ico 2010-11-02 22:22:53 +0000 differ |
35 | === modified file 'install/UbuntuOne7.wxs' | |||
36 | --- install/UbuntuOne7.wxs 2010-10-20 23:32:43 +0000 | |||
37 | +++ install/UbuntuOne7.wxs 2010-11-02 22:22:53 +0000 | |||
38 | @@ -42,6 +42,24 @@ | |||
39 | 42 | 42 | ||
40 | 43 | <Directory Id="TARGETDIR" | 43 | <Directory Id="TARGETDIR" |
41 | 44 | Name="SourceDir"> | 44 | Name="SourceDir"> |
42 | 45 | <Component Id="IsPresentUbuntuOneIconOverlayKey" Guid="1f83ee90-e6c5-11df-9492-0800200c9a66"> | ||
43 | 46 | <RegistryValue Root="HKLM" | ||
44 | 47 | Key="Software\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\IsPresentUbuntuOneIconOverlay" | ||
45 | 48 | Value="{4FC554DF-F0EE-4A4F-966C-9C49CCF14D59}" | ||
46 | 49 | Type="string"/> | ||
47 | 50 | </Component> | ||
48 | 51 | <Component Id="IsNewUbuntuOneIconOverlayKey" Guid="1f83ee91-e6c5-11df-9492-0800200c9a66"> | ||
49 | 52 | <RegistryValue Root="HKLM" | ||
50 | 53 | Key="Software\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\IsNewUbuntuOneIconOverlay" | ||
51 | 54 | Value="{a9694f20-ddbe-11df-85ca-0800200c9a66}" | ||
52 | 55 | Type="string"/> | ||
53 | 56 | </Component> | ||
54 | 57 | <Component Id="IsConflictUbuntuOneIconOverlayKey" Guid="1f83ee92-e6c5-11df-9492-0800200c9a66"> | ||
55 | 58 | <RegistryValue Root="HKLM" | ||
56 | 59 | Key="Software\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\IsConflictUbuntuOneIconOverlay" | ||
57 | 60 | Value="{3dc7f120-ded8-11df-85ca-0800200c9a66}" | ||
58 | 61 | Type="string"/> | ||
59 | 62 | </Component> | ||
60 | 45 | <Directory Id="ProgramMenuFolder" | 63 | <Directory Id="ProgramMenuFolder" |
61 | 46 | Name="Programs" > | 64 | Name="Programs" > |
62 | 47 | <Directory Id="ApplicationProgramsFolder" Name="Ubuntu One"> | 65 | <Directory Id="ApplicationProgramsFolder" Name="Ubuntu One"> |
63 | @@ -714,6 +732,646 @@ | |||
64 | 714 | KeyPath="yes"/> | 732 | KeyPath="yes"/> |
65 | 715 | </Component> | 733 | </Component> |
66 | 716 | </Directory> | 734 | </Directory> |
67 | 735 | <Directory Id="EmblemsCacheDir" | ||
68 | 736 | Name="EmblemsCache"> | ||
69 | 737 | <Component Id="EmblemsCacheAutostart" | ||
70 | 738 | Guid="ccbf8b90-e2d9-11df-85ca-0800200c9a66"> | ||
71 | 739 | <RegistryValue Id="EmblemsCache.rst" | ||
72 | 740 | Root="HKCU" | ||
73 | 741 | Key="Software\Microsoft\Windows\CurrentVersion\Run" | ||
74 | 742 | Name="Ubuntu One Emblems Cache" | ||
75 | 743 | Value="[EmblemsCacheDir]windows_emblems_cache.exe" | ||
76 | 744 | Type="string"/> | ||
77 | 745 | <Condition>UBUNTUONECLIENT_EMBLEMSCACHE_START_VIA_REGISTRY</Condition> | ||
78 | 746 | </Component> | ||
79 | 747 | <Component Id="EmblemsCTypesComponent" | ||
80 | 748 | Guid="77e33900-e2a7-11df-85ca-0800200c9a66"> | ||
81 | 749 | <File Id="emblems_ctypes.pyd" | ||
82 | 750 | Name="_ctypes.pyd" | ||
83 | 751 | DiskId="1" | ||
84 | 752 | Source="build_results\emblems_cache\_ctypes.pyd" | ||
85 | 753 | KeyPath="yes"/> | ||
86 | 754 | </Component> | ||
87 | 755 | <Component Id="EmblemsHashLibComponent" | ||
88 | 756 | Guid="b3a11b60-e2a7-11df-85ca-0800200c9a66"> | ||
89 | 757 | <File Id="emblems_hashlib.pyd" | ||
90 | 758 | Name="_hashlib.pyd" | ||
91 | 759 | DiskId="1" | ||
92 | 760 | Source="build_results\emblems_cache\_hashlib.pyd" | ||
93 | 761 | KeyPath="yes"/> | ||
94 | 762 | </Component> | ||
95 | 763 | <Component Id="EmblemsMultiprocessingComponent" | ||
96 | 764 | Guid="f957c960-e2a7-11df-85ca-0800200c9a66"> | ||
97 | 765 | <File Id="emblems_multiprocessing.pyd" | ||
98 | 766 | Name="_multiprocessing.pyd" | ||
99 | 767 | DiskId="1" | ||
100 | 768 | Source="build_results\emblems_cache\_multiprocessing.pyd" | ||
101 | 769 | KeyPath="yes"/> | ||
102 | 770 | </Component> | ||
103 | 771 | <Component Id="EmblemsSocketComponent" | ||
104 | 772 | Guid="31861c60-e2a8-11df-85ca-0800200c9a66"> | ||
105 | 773 | <File Id="emblems_socket.pyd" | ||
106 | 774 | Name="_socket.pyd" | ||
107 | 775 | DiskId="1" | ||
108 | 776 | Source="build_results\emblems_cache\_socket.pyd" | ||
109 | 777 | KeyPath="yes"/> | ||
110 | 778 | </Component> | ||
111 | 779 | <Component Id="EmblemsSSLComponent" | ||
112 | 780 | Guid="895c12a0-e2a8-11df-85ca-0800200c9a66"> | ||
113 | 781 | <File Id="emblems_ssl.pyd" | ||
114 | 782 | Name="_ssl.pyd" | ||
115 | 783 | DiskId="1" | ||
116 | 784 | Source="build_results\emblems_cache\_ssl.pyd" | ||
117 | 785 | KeyPath="yes"/> | ||
118 | 786 | </Component> | ||
119 | 787 | <Component Id="EmblemsSysLoaderComponent" | ||
120 | 788 | Guid="99e32eb0-e2a8-11df-85ca-0800200c9a66"> | ||
121 | 789 | <File Id="emblems_win32sysloader.pyd" | ||
122 | 790 | Name="_win32sysloader.pyd" | ||
123 | 791 | DiskId="1" | ||
124 | 792 | Source="build_results\emblems_cache\_win32sysloader.pyd" | ||
125 | 793 | KeyPath="yes"/> | ||
126 | 794 | </Component> | ||
127 | 795 | <Component Id="EmblemsCoreDebugComponent" | ||
128 | 796 | Guid="bc431420-e2a8-11df-85ca-0800200c9a66"> | ||
129 | 797 | <File Id="emblems_API_MS_Win_Core_Debug_L1_1_0.dll" | ||
130 | 798 | Name="API-MS-Win-Core-Debug-L1-1-0.dll" | ||
131 | 799 | DiskId="1" | ||
132 | 800 | Source="build_results\emblems_cache\API-MS-Win-Core-Debug-L1-1-0.dll" | ||
133 | 801 | KeyPath="yes"/> | ||
134 | 802 | </Component> | ||
135 | 803 | <Component Id="EmblemsDelayLoadComponent" | ||
136 | 804 | Guid="e5df1630-e2a8-11df-85ca-0800200c9a66"> | ||
137 | 805 | <File Id="emblems_API_MS_Win_Core_DelayLoad_L1_1_0.dll" | ||
138 | 806 | Name="API-MS-Win-Core-DelayLoad-L1-1-0.dll" | ||
139 | 807 | DiskId="1" | ||
140 | 808 | Source="build_results\emblems_cache\API-MS-Win-Core-DelayLoad-L1-1-0.dll" | ||
141 | 809 | KeyPath="yes"/> | ||
142 | 810 | </Component> | ||
143 | 811 | <Component Id="EmblemsErrorHandlingComponent" | ||
144 | 812 | Guid="19241630-e2a9-11df-85ca-0800200c9a66"> | ||
145 | 813 | <File Id="emblems_API_MS_Win_Core_ErrorHandling_L1_1_0.dll" | ||
146 | 814 | Name="API-MS-Win-Core-ErrorHandling-L1-1-0.dll" | ||
147 | 815 | DiskId="1" | ||
148 | 816 | Source="build_results\emblems_cache\API-MS-Win-Core-ErrorHandling-L1-1-0.dll" | ||
149 | 817 | KeyPath="yes"/> | ||
150 | 818 | </Component> | ||
151 | 819 | <Component Id="EmblemsHandleComponent" | ||
152 | 820 | Guid="5b4a2360-e2a9-11df-85ca-0800200c9a66"> | ||
153 | 821 | <File Id="emblems_API_MS_Win_Core_Handle_L1_1_0.dll" | ||
154 | 822 | Name="API-MS-Win-Core-Handle-L1-1-0.dll" | ||
155 | 823 | DiskId="1" | ||
156 | 824 | Source="build_results\emblems_cache\API-MS-Win-Core-Handle-L1-1-0.dll" | ||
157 | 825 | KeyPath="yes"/> | ||
158 | 826 | </Component> | ||
159 | 827 | <Component Id="EmblemsInterlockedComponent" | ||
160 | 828 | Guid="77faa6b0-e2a9-11df-85ca-0800200c9a66"> | ||
161 | 829 | <File Id="emblems_API_MS_Win_Core_Interlocked_L1_1_0.dll" | ||
162 | 830 | Name="API-MS-Win-Core-Interlocked-L1-1-0.dll" | ||
163 | 831 | DiskId="1" | ||
164 | 832 | Source="build_results\emblems_cache\API-MS-Win-Core-Interlocked-L1-1-0.dll" | ||
165 | 833 | KeyPath="yes"/> | ||
166 | 834 | </Component> | ||
167 | 835 | <Component Id="EmblemsIOComponent" | ||
168 | 836 | Guid="e6d0d3c0-e2a9-11df-85ca-0800200c9a66"> | ||
169 | 837 | <File Id="emblems_API_MS_Win_Core_IO_L1_1_0.dll" | ||
170 | 838 | Name="API-MS-Win-Core-IO-L1-1-0.dll" | ||
171 | 839 | DiskId="1" | ||
172 | 840 | Source="build_results\emblems_cache\API-MS-Win-Core-IO-L1-1-0.dll" | ||
173 | 841 | KeyPath="yes"/> | ||
174 | 842 | </Component> | ||
175 | 843 | <Component Id="EmblemsLibraryLoaderComponent" | ||
176 | 844 | Guid="d0fe7920-e2aa-11df-85ca-0800200c9a66"> | ||
177 | 845 | <File Id="emblems_API_MS_Win_Core_LibraryLoader_L1_1_0.dll" | ||
178 | 846 | Name="API-MS-Win-Core-LibraryLoader-L1-1-0.dll" | ||
179 | 847 | DiskId="1" | ||
180 | 848 | Source="build_results\emblems_cache\API-MS-Win-Core-LibraryLoader-L1-1-0.dll" | ||
181 | 849 | KeyPath="yes"/> | ||
182 | 850 | </Component> | ||
183 | 851 | <Component Id="EmblemsLocalizationComponent" | ||
184 | 852 | Guid="0d578a10-e2ab-11df-85ca-0800200c9a66"> | ||
185 | 853 | <File Id="emblems_API_MS_Win_Core_Localization_L1_1_0.dll" | ||
186 | 854 | Name="API-MS-Win-Core-Localization-L1-1-0.dll" | ||
187 | 855 | DiskId="1" | ||
188 | 856 | Source="build_results\emblems_cache\API-MS-Win-Core-Localization-L1-1-0.dll" | ||
189 | 857 | KeyPath="yes"/> | ||
190 | 858 | </Component> | ||
191 | 859 | <Component Id="EmblemsLocaRegistryComponent" | ||
192 | 860 | Guid="256141a0-e2ab-11df-85ca-0800200c9a66"> | ||
193 | 861 | <File Id="emblems_API_MS_Win_Core_LocalRegistry_L1_1_0.dll" | ||
194 | 862 | Name="API-MS-Win-Core-LocalRegistry-L1-1-0.dll" | ||
195 | 863 | DiskId="1" | ||
196 | 864 | Source="build_results\emblems_cache\API-MS-Win-Core-LocalRegistry-L1-1-0.dll" | ||
197 | 865 | KeyPath="yes"/> | ||
198 | 866 | </Component> | ||
199 | 867 | <Component Id="EmblemsMemoryComponent" | ||
200 | 868 | Guid="640294e0-e2ab-11df-85ca-0800200c9a66"> | ||
201 | 869 | <File Id="emblems_API_MS_Win_Core_Memory_L1_1_0.dll" | ||
202 | 870 | Name="API-MS-Win-Core-Memory-L1-1-0.dll" | ||
203 | 871 | DiskId="1" | ||
204 | 872 | Source="build_results\emblems_cache\API-MS-Win-Core-Memory-L1-1-0.dll" | ||
205 | 873 | KeyPath="yes"/> | ||
206 | 874 | </Component> | ||
207 | 875 | <Component Id="EmblemsMiscComponent" | ||
208 | 876 | Guid="9dde70d0-e2ab-11df-85ca-0800200c9a66"> | ||
209 | 877 | <File Id="emblems_API_MS_Win_Core_Misc_L1_1_0.dll" | ||
210 | 878 | Name="API-MS-Win-Core-Misc-L1-1-0.dll" | ||
211 | 879 | DiskId="1" | ||
212 | 880 | Source="build_results\emblems_cache\API-MS-Win-Core-Misc-L1-1-0.dll" | ||
213 | 881 | KeyPath="yes"/> | ||
214 | 882 | </Component> | ||
215 | 883 | <Component Id="EmblemsProcessEnvironmentComponent" | ||
216 | 884 | Guid="c8e351b0-e2ab-11df-85ca-0800200c9a66"> | ||
217 | 885 | <File Id="emblems_API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll" | ||
218 | 886 | Name="API-MS-Win-Core-ProcessEnvironment-L1-1-0.dll" | ||
219 | 887 | DiskId="1" | ||
220 | 888 | Source="build_results\emblems_cache\API-MS-Win-Core-ProcessEnvironment-L1-1-0.dll" | ||
221 | 889 | KeyPath="yes"/> | ||
222 | 890 | </Component> | ||
223 | 891 | <Component Id="EmblemsProcessThreadComponent" | ||
224 | 892 | Guid="eba52d40-e2ab-11df-85ca-0800200c9a66"> | ||
225 | 893 | <File Id="emblems_API_MS_Win_Core_ProcessThreads_L1_1_0.dll" | ||
226 | 894 | Name="API-MS-Win-Core-ProcessThreads-L1-1-0.dll" | ||
227 | 895 | DiskId="1" | ||
228 | 896 | Source="build_results\emblems_cache\API-MS-Win-Core-ProcessThreads-L1-1-0.dll" | ||
229 | 897 | KeyPath="yes"/> | ||
230 | 898 | </Component> | ||
231 | 899 | <Component Id="EmblemsProfileComponent" | ||
232 | 900 | Guid="2213f5f0-e2ac-11df-85ca-0800200c9a66"> | ||
233 | 901 | <File Id="emblems_API_MS_Win_Core_Profile_L1_1_0.dll" | ||
234 | 902 | Name="API-MS-Win-Core-Profile-L1-1-0.dll" | ||
235 | 903 | DiskId="1" | ||
236 | 904 | Source="build_results\emblems_cache\API-MS-Win-Core-Profile-L1-1-0.dll" | ||
237 | 905 | KeyPath="yes"/> | ||
238 | 906 | </Component> | ||
239 | 907 | <Component Id="EmblemsStringComponent" | ||
240 | 908 | Guid="737edb30-e2ac-11df-85ca-0800200c9a66"> | ||
241 | 909 | <File Id="emblems_API_MS_Win_Core_String_L1_1_0.dll" | ||
242 | 910 | Name="API-MS-Win-Core-String-L1-1-0.dll" | ||
243 | 911 | DiskId="1" | ||
244 | 912 | Source="build_results\emblems_cache\API-MS-Win-Core-String-L1-1-0.dll" | ||
245 | 913 | KeyPath="yes"/> | ||
246 | 914 | </Component> | ||
247 | 915 | <Component Id="EmblemsSynchComponent" | ||
248 | 916 | Guid="207f2fb0-e2ad-11df-85ca-0800200c9a66"> | ||
249 | 917 | <File Id="emblems_API_MS_Win_Core_Synch_L1_1_0.dll" | ||
250 | 918 | Name="API-MS-Win-Core-Synch-L1-1-0.dll" | ||
251 | 919 | DiskId="1" | ||
252 | 920 | Source="build_results\emblems_cache\API-MS-Win-Core-Synch-L1-1-0.dll" | ||
253 | 921 | KeyPath="yes"/> | ||
254 | 922 | </Component> | ||
255 | 923 | <Component Id="EmblemsSysInfoComponent" | ||
256 | 924 | Guid="2cd57350-e2ad-11df-85ca-0800200c9a66"> | ||
257 | 925 | <File Id="emblems_API_MS_Win_Core_SysInfo_L1_1_0.dll" | ||
258 | 926 | Name="API-MS-Win-Core-SysInfo-L1-1-0.dll" | ||
259 | 927 | DiskId="1" | ||
260 | 928 | Source="build_results\emblems_cache\API-MS-Win-Core-SysInfo-L1-1-0.dll" | ||
261 | 929 | KeyPath="yes"/> | ||
262 | 930 | </Component> | ||
263 | 931 | <Component Id="EmblemsSecurityComponent" | ||
264 | 932 | Guid="a851b1b0-e2ad-11df-85ca-0800200c9a66"> | ||
265 | 933 | <File Id="emblems_API_MS_Win_Security_Base_L1_1_0.dll" | ||
266 | 934 | Name="API-MS-Win-Security-Base-L1-1-0.dll" | ||
267 | 935 | DiskId="1" | ||
268 | 936 | Source="build_results\emblems_cache\API-MS-Win-Security-Base-L1-1-0.dll" | ||
269 | 937 | KeyPath="yes"/> | ||
270 | 938 | </Component> | ||
271 | 939 | <Component Id="EmblemsBz2Component" | ||
272 | 940 | Guid="da6bed50-e2ad-11df-85ca-0800200c9a66"> | ||
273 | 941 | <File Id="emblems_bz2.pyd" | ||
274 | 942 | Name="bz2.pyd" | ||
275 | 943 | DiskId="1" | ||
276 | 944 | Source="build_results\emblems_cache\bz2.pyd" | ||
277 | 945 | KeyPath="yes"/> | ||
278 | 946 | </Component> | ||
279 | 947 | <Component Id="EmblemsKernelBaseComponent" | ||
280 | 948 | Guid="151bbb10-e2ae-11df-85ca-0800200c9a66"> | ||
281 | 949 | <File Id="emblems_KERNELBASE.dll" | ||
282 | 950 | Name="KERNELBASE.dll" | ||
283 | 951 | DiskId="1" | ||
284 | 952 | Source="build_results\emblems_cache\KERNELBASE.dll" | ||
285 | 953 | KeyPath="yes"/> | ||
286 | 954 | </Component> | ||
287 | 955 | <Component Id="EmblemsLibraryComponent" | ||
288 | 956 | Guid="5b0d7640-e2ae-11df-85ca-0800200c9a66"> | ||
289 | 957 | <File Id="emblems_library.zip" | ||
290 | 958 | Name="library.zip" | ||
291 | 959 | DiskId="1" | ||
292 | 960 | Source="build_results\emblems_cache\library.zip" | ||
293 | 961 | KeyPath="yes"/> | ||
294 | 962 | </Component> | ||
295 | 963 | <Component Id="EmblemsMPRComponent" | ||
296 | 964 | Guid="6e6d2dc0-e2ae-11df-85ca-0800200c9a66"> | ||
297 | 965 | <File Id="emblems_MPR.dll" | ||
298 | 966 | Name="MPR.dll" | ||
299 | 967 | DiskId="1" | ||
300 | 968 | Source="build_results\emblems_cache\MPR.dll" | ||
301 | 969 | KeyPath="yes"/> | ||
302 | 970 | </Component> | ||
303 | 971 | <Component Id="EmblemsMWSOCKComponent" | ||
304 | 972 | Guid="a143b480-e2ae-11df-85ca-0800200c9a66"> | ||
305 | 973 | <File Id="emblems_MSWSOCK.dll" | ||
306 | 974 | Name="MSWSOCK.dll" | ||
307 | 975 | DiskId="1" | ||
308 | 976 | Source="build_results\emblems_cache\MSWSOCK.dll" | ||
309 | 977 | KeyPath="yes"/> | ||
310 | 978 | </Component> | ||
311 | 979 | <Component Id="EmblemsPOWRPROFComponent" | ||
312 | 980 | Guid="c7530d60-e2ae-11df-85ca-0800200c9a66"> | ||
313 | 981 | <File Id="emblems_POWRPROF.dll" | ||
314 | 982 | Name="POWRPROF.dll" | ||
315 | 983 | DiskId="1" | ||
316 | 984 | Source="build_results\emblems_cache\POWRPROF.dll" | ||
317 | 985 | KeyPath="yes"/> | ||
318 | 986 | </Component> | ||
319 | 987 | <Component Id="EmblemsPyexpatComponent" | ||
320 | 988 | Guid="e472cd40-e2ae-11df-85ca-0800200c9a66"> | ||
321 | 989 | <File Id="emblems_pyexpat.pyd" | ||
322 | 990 | Name="pyexpat.pyd" | ||
323 | 991 | DiskId="1" | ||
324 | 992 | Source="build_results\emblems_cache\pyexpat.pyd" | ||
325 | 993 | KeyPath="yes"/> | ||
326 | 994 | </Component> | ||
327 | 995 | <Component Id="EmblemsPythonDllComponent" | ||
328 | 996 | Guid="99c47ef0-e2af-11df-85ca-0800200c9a66"> | ||
329 | 997 | <File Id="emblems_python26.dll" | ||
330 | 998 | Name="python26.dll" | ||
331 | 999 | DiskId="1" | ||
332 | 1000 | Source="build_results\emblems_cache\python26.dll" | ||
333 | 1001 | KeyPath="yes"/> | ||
334 | 1002 | </Component> | ||
335 | 1003 | <Component Id="EmblemsPyWinTypesComponent" | ||
336 | 1004 | Guid="b828a5b0-e2af-11df-85ca-0800200c9a66"> | ||
337 | 1005 | <File Id="emblems_pywintypes26.dll" | ||
338 | 1006 | Name="pywintypes26.dll" | ||
339 | 1007 | DiskId="1" | ||
340 | 1008 | Source="build_results\emblems_cache\pywintypes26.dll" | ||
341 | 1009 | KeyPath="yes"/> | ||
342 | 1010 | </Component> | ||
343 | 1011 | <Component Id="EmblemsSelectComponent" | ||
344 | 1012 | Guid="d8e08070-e2af-11df-85ca-0800200c9a66"> | ||
345 | 1013 | <File Id="emblems_select.pyd" | ||
346 | 1014 | Name="select.pyd" | ||
347 | 1015 | DiskId="1" | ||
348 | 1016 | Source="build_results\emblems_cache\select.pyd" | ||
349 | 1017 | KeyPath="yes"/> | ||
350 | 1018 | </Component> | ||
351 | 1019 | <Component Id="EmblemsUnicodeDataComponent" | ||
352 | 1020 | Guid="073cf0c0-e2b0-11df-85ca-0800200c9a66"> | ||
353 | 1021 | <File Id="emblems_unicodedata.pyd" | ||
354 | 1022 | Name="unicodedata.pyd" | ||
355 | 1023 | DiskId="1" | ||
356 | 1024 | Source="build_results\emblems_cache\unicodedata.pyd" | ||
357 | 1025 | KeyPath="yes"/> | ||
358 | 1026 | </Component> | ||
359 | 1027 | <Component Id="EmblemsW9xopenComponent" | ||
360 | 1028 | Guid="236d2080-e2b0-11df-85ca-0800200c9a66"> | ||
361 | 1029 | <File Id="emblems_w9xpopen.exe" | ||
362 | 1030 | Name="w9xpopen.exe" | ||
363 | 1031 | DiskId="1" | ||
364 | 1032 | Source="build_results\emblems_cache\w9xpopen.exe" | ||
365 | 1033 | KeyPath="yes"/> | ||
366 | 1034 | </Component> | ||
367 | 1035 | <Component Id="EmblemsWin32ApiComponent" | ||
368 | 1036 | Guid="5676ec40-e2b0-11df-85ca-0800200c9a66"> | ||
369 | 1037 | <File Id="emblems_win32api.pyd" | ||
370 | 1038 | Name="win32api.pyd" | ||
371 | 1039 | DiskId="1" | ||
372 | 1040 | Source="build_results\emblems_cache\win32api.pyd" | ||
373 | 1041 | KeyPath="yes"/> | ||
374 | 1042 | </Component> | ||
375 | 1043 | <Component Id="EmblemsWin32EventComponent" | ||
376 | 1044 | Guid="7331f6e0-e2b0-11df-85ca-0800200c9a66"> | ||
377 | 1045 | <File Id="emblems_win32event.pyd" | ||
378 | 1046 | Name="win32event.pyd" | ||
379 | 1047 | DiskId="1" | ||
380 | 1048 | Source="build_results\emblems_cache\win32event.pyd" | ||
381 | 1049 | KeyPath="yes"/> | ||
382 | 1050 | </Component> | ||
383 | 1051 | <Component Id="EmblemsWin32FileComponent" | ||
384 | 1052 | Guid="9c2dc150-e2b0-11df-85ca-0800200c9a66"> | ||
385 | 1053 | <File Id="emblems_win32file.pyd" | ||
386 | 1054 | Name="win32file.pyd" | ||
387 | 1055 | DiskId="1" | ||
388 | 1056 | Source="build_results\emblems_cache\win32file.pyd" | ||
389 | 1057 | KeyPath="yes"/> | ||
390 | 1058 | </Component> | ||
391 | 1059 | <Component Id="EmblemsWin32PipeComponent" | ||
392 | 1060 | Guid="cbdeec30-e2b0-11df-85ca-0800200c9a66"> | ||
393 | 1061 | <File Id="emblems_win32pipe.pyd" | ||
394 | 1062 | Name="win32pipe.pyd" | ||
395 | 1063 | DiskId="1" | ||
396 | 1064 | Source="build_results\emblems_cache\win32pipe.pyd" | ||
397 | 1065 | KeyPath="yes"/> | ||
398 | 1066 | </Component> | ||
399 | 1067 | <Component Id="EmblemsWnetComponent" | ||
400 | 1068 | Guid="e94e79c0-e2b0-11df-85ca-0800200c9a66"> | ||
401 | 1069 | <File Id="emblems_win32wnet.pyd" | ||
402 | 1070 | Name="win32wnet.pyd" | ||
403 | 1071 | DiskId="1" | ||
404 | 1072 | Source="build_results\emblems_cache\win32wnet.pyd" | ||
405 | 1073 | KeyPath="yes"/> | ||
406 | 1074 | </Component> | ||
407 | 1075 | <Component Id="EmblemsAppComponent" | ||
408 | 1076 | Guid="06b072c0-e2b1-11df-85ca-0800200c9a66"> | ||
409 | 1077 | <File Id="windows_emblems_cache.exe" | ||
410 | 1078 | Name="windows_emblems_cache.exe" | ||
411 | 1079 | DiskId="1" | ||
412 | 1080 | Source="build_results\emblems_cache\windows_emblems_cache.exe" | ||
413 | 1081 | KeyPath="yes"/> | ||
414 | 1082 | </Component> | ||
415 | 1083 | </Directory> | ||
416 | 1084 | <Directory Id="IconsOverlayDir" | ||
417 | 1085 | Name="IconsOverlay"> | ||
418 | 1086 | <Component Id="IconsOverlaySysLoaderComponent" | ||
419 | 1087 | Guid="26ce6810-e68e-11df-9492-0800200c9a66"> | ||
420 | 1088 | <File Id="icons_overlay_win32sysloader.pyd" | ||
421 | 1089 | Name="_win32sysloader.pyd" | ||
422 | 1090 | DiskId="1" | ||
423 | 1091 | Source="build_results\icons_overlay\_win32sysloader.pyd" | ||
424 | 1092 | KeyPath="yes"/> | ||
425 | 1093 | </Component> | ||
426 | 1094 | <Component Id="IconsOverlayWinCoreDebugComponent" | ||
427 | 1095 | Guid="3c8a10f0-e68e-11df-9492-0800200c9a66"> | ||
428 | 1096 | <File Id="icons_overlay_API_MS_Win_Core_Debug_L1_1_0.dll" | ||
429 | 1097 | Name="API-MS-Win-Core-Debug-L1-1-0.dll" | ||
430 | 1098 | DiskId="1" | ||
431 | 1099 | Source="build_results\icons_overlay\API-MS-Win-Core-Debug-L1-1-0.dll" | ||
432 | 1100 | KeyPath="yes"/> | ||
433 | 1101 | </Component> | ||
434 | 1102 | <Component Id="IconsOverlayWinCoreDelayLoadComponent" | ||
435 | 1103 | Guid="3c8a10f1-e68e-11df-9492-0800200c9a66"> | ||
436 | 1104 | <File Id="icons_overlay_API_MS_Win_Core_DelayLoad_L1_1_0.dll" | ||
437 | 1105 | Name="API-MS-Win-Core-DelayLoad-L1-1-0.dll" | ||
438 | 1106 | DiskId="1" | ||
439 | 1107 | Source="build_results\icons_overlay\API-MS-Win-Core-DelayLoad-L1-1-0.dll" | ||
440 | 1108 | KeyPath="yes"/> | ||
441 | 1109 | </Component> | ||
442 | 1110 | <Component Id="IconsOverlayWinCoreErrorHandlingComponent" | ||
443 | 1111 | Guid="3c8a10f2-e68e-11df-9492-0800200c9a66"> | ||
444 | 1112 | <File Id="icons_overlay_API_MS_Win_Core_ErrorHandling_L1_1_0.dll" | ||
445 | 1113 | Name="API-MS-Win-Core-ErrorHandling-L1-1-0.dll" | ||
446 | 1114 | DiskId="1" | ||
447 | 1115 | Source="build_results\icons_overlay\API-MS-Win-Core-ErrorHandling-L1-1-0.dll" | ||
448 | 1116 | KeyPath="yes"/> | ||
449 | 1117 | </Component> | ||
450 | 1118 | <Component Id="IconsOverlayWinCoreHandleComponent" | ||
451 | 1119 | Guid="3c8a10f4-e68e-11df-9492-0800200c9a66"> | ||
452 | 1120 | <File Id="icons_overlay_API_MS_Win_Core_Handle_L1_1_0.dll" | ||
453 | 1121 | Name="API-MS-Win-Core-Handle-L1-1-0.dll" | ||
454 | 1122 | DiskId="1" | ||
455 | 1123 | Source="build_results\icons_overlay\API-MS-Win-Core-Handle-L1-1-0.dll" | ||
456 | 1124 | KeyPath="yes"/> | ||
457 | 1125 | </Component> | ||
458 | 1126 | <Component Id="IconsOverlayWinCoreInterlockedComponent" | ||
459 | 1127 | Guid="3c8a10f5-e68e-11df-9492-0800200c9a66"> | ||
460 | 1128 | <File Id="icons_overlay_API_MS_Win_Core_Interlocked_L1_1_0.dll" | ||
461 | 1129 | Name="API-MS-Win-Core-Interlocked-L1-1-0.dll" | ||
462 | 1130 | DiskId="1" | ||
463 | 1131 | Source="build_results\icons_overlay\API-MS-Win-Core-Interlocked-L1-1-0.dll" | ||
464 | 1132 | KeyPath="yes"/> | ||
465 | 1133 | </Component> | ||
466 | 1134 | <Component Id="IconsOverlayWinCoreIOComponent" | ||
467 | 1135 | Guid="3c8a10f6-e68e-11df-9492-0800200c9a66"> | ||
468 | 1136 | <File Id="icons_overlay_API_MS_Win_Core_IO_L1_1_0.dll" | ||
469 | 1137 | Name="API-MS-Win-Core-IO-L1-1-0.dll" | ||
470 | 1138 | DiskId="1" | ||
471 | 1139 | Source="build_results\icons_overlay\API-MS-Win-Core-IO-L1-1-0.dll" | ||
472 | 1140 | KeyPath="yes"/> | ||
473 | 1141 | </Component> | ||
474 | 1142 | <Component Id="IconsOverlayWinCoreLibraryLoaderComponent" | ||
475 | 1143 | Guid="3c8a10f7-e68e-11df-9492-0800200c9a66"> | ||
476 | 1144 | <File Id="icons_overlay_API_MS_Win_Core_LibraryLoader_L1_1_0.dll" | ||
477 | 1145 | Name="API-MS-Win-Core-LibraryLoader-L1-1-0.dll" | ||
478 | 1146 | DiskId="1" | ||
479 | 1147 | Source="build_results\icons_overlay\API-MS-Win-Core-LibraryLoader-L1-1-0.dll" | ||
480 | 1148 | KeyPath="yes"/> | ||
481 | 1149 | </Component> | ||
482 | 1150 | <Component Id="IconsOverlayWinCoreLocalizationComponent" | ||
483 | 1151 | Guid="9c1eaf60-e690-11df-9492-0800200c9a66"> | ||
484 | 1152 | <File Id="icons_overlay_API_MS_Win_Core_LocalRegistry_L1_1_0.dll" | ||
485 | 1153 | Name="API-MS-Win-Core-LocalRegistry-L1-1-0.dll" | ||
486 | 1154 | DiskId="1" | ||
487 | 1155 | Source="build_results\icons_overlay\API-MS-Win-Core-LocalRegistry-L1-1-0.dll" | ||
488 | 1156 | KeyPath="yes"/> | ||
489 | 1157 | </Component> | ||
490 | 1158 | <Component Id="IconsOverlayWinCoreMemoryComponent" | ||
491 | 1159 | Guid="9c1eaf61-e690-11df-9492-0800200c9a66"> | ||
492 | 1160 | <File Id="icons_overlay_API_MS_Win_Core_Memory_L1_1_0.dll" | ||
493 | 1161 | Name="API-MS-Win-Core-Memory-L1-1-0.dll" | ||
494 | 1162 | DiskId="1" | ||
495 | 1163 | Source="build_results\icons_overlay\API-MS-Win-Core-Memory-L1-1-0.dll" | ||
496 | 1164 | KeyPath="yes"/> | ||
497 | 1165 | </Component> | ||
498 | 1166 | <Component Id="IconsOverlayWinCoreMiscComponent" | ||
499 | 1167 | Guid="9c1eaf62-e690-11df-9492-0800200c9a66"> | ||
500 | 1168 | <File Id="icons_overlay_API_MS_Win_Core_Misc_L1_1_0.dll" | ||
501 | 1169 | Name="API-MS-Win-Core-Misc-L1-1-0.dll" | ||
502 | 1170 | DiskId="1" | ||
503 | 1171 | Source="build_results\icons_overlay\API-MS-Win-Core-Misc-L1-1-0.dll" | ||
504 | 1172 | KeyPath="yes"/> | ||
505 | 1173 | </Component> | ||
506 | 1174 | <Component Id="IconsOverlayWinCoreProcessEnvironmentComponent" | ||
507 | 1175 | Guid="9c1eaf63-e690-11df-9492-0800200c9a66"> | ||
508 | 1176 | <File Id="icons_overlay_API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll" | ||
509 | 1177 | Name="API-MS-Win-Core-ProcessEnvironment-L1-1-0.dll" | ||
510 | 1178 | DiskId="1" | ||
511 | 1179 | Source="build_results\icons_overlay\API-MS-Win-Core-ProcessEnvironment-L1-1-0.dll" | ||
512 | 1180 | KeyPath="yes"/> | ||
513 | 1181 | </Component> | ||
514 | 1182 | <Component Id="IconsOverlayWinCoreProcessThreadsComponent" | ||
515 | 1183 | Guid="9c1eaf64-e690-11df-9492-0800200c9a66"> | ||
516 | 1184 | <File Id="icons_overlay_API_MS_Win_Core_ProcessThreads_L1_1_0.dll" | ||
517 | 1185 | Name="API-MS-Win-Core-ProcessThreads-L1-1-0.dll" | ||
518 | 1186 | DiskId="1" | ||
519 | 1187 | Source="build_results\icons_overlay\API-MS-Win-Core-ProcessThreads-L1-1-0.dll" | ||
520 | 1188 | KeyPath="yes"/> | ||
521 | 1189 | </Component> | ||
522 | 1190 | <Component Id="IconsOverlayWinCoreProfileComponent" | ||
523 | 1191 | Guid="9c1eaf65-e690-11df-9492-0800200c9a66"> | ||
524 | 1192 | <File Id="icons_overlay_API_MS_Win_Core_Profile_L1_1_0.dll" | ||
525 | 1193 | Name="API-MS-Win-Core-Profile-L1-1-0.dll" | ||
526 | 1194 | DiskId="1" | ||
527 | 1195 | Source="build_results\icons_overlay\API-MS-Win-Core-Profile-L1-1-0.dll" | ||
528 | 1196 | KeyPath="yes"/> | ||
529 | 1197 | </Component> | ||
530 | 1198 | <Component Id="IconsOverlayWinCoreStringComponent" | ||
531 | 1199 | Guid="9c1eaf66-e690-11df-9492-0800200c9a66"> | ||
532 | 1200 | <File Id="icons_overlay_API_MS_Win_Core_String_L1_1_0.dll" | ||
533 | 1201 | Name="API-MS-Win-Core-String-L1-1-0.dll" | ||
534 | 1202 | DiskId="1" | ||
535 | 1203 | Source="build_results\icons_overlay\API-MS-Win-Core-String-L1-1-0.dll" | ||
536 | 1204 | KeyPath="yes"/> | ||
537 | 1205 | </Component> | ||
538 | 1206 | <Component Id="IconsOverlayWinCoreSynchComponent" | ||
539 | 1207 | Guid="9c1eaf67-e690-11df-9492-0800200c9a66"> | ||
540 | 1208 | <File Id="icons_overlay_API_MS_Win_Core_Synch_L1_1_0.dll" | ||
541 | 1209 | Name="API-MS-Win-Core-Synch-L1-1-0.dll" | ||
542 | 1210 | DiskId="1" | ||
543 | 1211 | Source="build_results\icons_overlay\API-MS-Win-Core-Synch-L1-1-0.dll" | ||
544 | 1212 | KeyPath="yes"/> | ||
545 | 1213 | </Component> | ||
546 | 1214 | <Component Id="IconsOverlayWinCoreSysInfoComponent" | ||
547 | 1215 | Guid="9c1eaf68-e690-11df-9492-0800200c9a66"> | ||
548 | 1216 | <File Id="icons_overlay_API_MS_Win_Core_SysInfo_L1_1_0.dll" | ||
549 | 1217 | Name="API-MS-Win-Core-SysInfo-L1-1-0.dll" | ||
550 | 1218 | DiskId="1" | ||
551 | 1219 | Source="build_results\icons_overlay\API-MS-Win-Core-SysInfo-L1-1-0.dll" | ||
552 | 1220 | KeyPath="yes"/> | ||
553 | 1221 | </Component> | ||
554 | 1222 | <Component Id="IconsOverlayWinCoreSecurityBaseComponent" | ||
555 | 1223 | Guid="9c1eaf69-e690-11df-9492-0800200c9a66"> | ||
556 | 1224 | <File Id="icons_overlay_API_MS_Win_Security_Base_L1_1_0.dll" | ||
557 | 1225 | Name="API-MS-Win-Security-Base-L1-1-0.dll" | ||
558 | 1226 | DiskId="1" | ||
559 | 1227 | Source="build_results\icons_overlay\API-MS-Win-Security-Base-L1-1-0.dll" | ||
560 | 1228 | KeyPath="yes"/> | ||
561 | 1229 | </Component> | ||
562 | 1230 | <Component Id="IconsOverlayBz2Component" | ||
563 | 1231 | Guid="9c1ed670-e690-11df-9492-0800200c9a66"> | ||
564 | 1232 | <File Id="icons_overlay_bz2.pyd" | ||
565 | 1233 | Name="bz2.pyd" | ||
566 | 1234 | DiskId="1" | ||
567 | 1235 | Source="build_results\icons_overlay\bz2.pyd" | ||
568 | 1236 | KeyPath="yes"/> | ||
569 | 1237 | </Component> | ||
570 | 1238 | <Component Id="IconsOverlayKernelComponent" | ||
571 | 1239 | Guid="9c1ed671-e690-11df-9492-0800200c9a66"> | ||
572 | 1240 | <File Id="icons_overlay_KERNELBASE.dll" | ||
573 | 1241 | Name="KERNELBASE.dll" | ||
574 | 1242 | DiskId="1" | ||
575 | 1243 | Source="build_results\icons_overlay\KERNELBASE.dll" | ||
576 | 1244 | KeyPath="yes"/> | ||
577 | 1245 | </Component> | ||
578 | 1246 | <Component Id="IconsOverlayLibraryComponent" | ||
579 | 1247 | Guid="9c1ed673-e690-11df-9492-0800200c9a66"> | ||
580 | 1248 | <File Id="icons_overlay_library.zip" | ||
581 | 1249 | Name="library.zip" | ||
582 | 1250 | DiskId="1" | ||
583 | 1251 | Source="build_results\icons_overlay\library.zip" | ||
584 | 1252 | KeyPath="yes"/> | ||
585 | 1253 | </Component> | ||
586 | 1254 | <Component Id="IconsOverlayMswsockComponent" | ||
587 | 1255 | Guid="9c1ed674-e690-11df-9492-0800200c9a66"> | ||
588 | 1256 | <File Id="icons_overlay_MSWSOCK.dll" | ||
589 | 1257 | Name="MSWSOCK.dll" | ||
590 | 1258 | DiskId="1" | ||
591 | 1259 | Source="build_results\icons_overlay\MSWSOCK.dll" | ||
592 | 1260 | KeyPath="yes"/> | ||
593 | 1261 | </Component> | ||
594 | 1262 | <Component Id="IconsOverlayPowrprofComponent" | ||
595 | 1263 | Guid="9c1ed675-e690-11df-9492-0800200c9a66"> | ||
596 | 1264 | <File Id="icons_overlay_POWRPROF.dll" | ||
597 | 1265 | Name="POWRPROF.dll" | ||
598 | 1266 | DiskId="1" | ||
599 | 1267 | Source="build_results\icons_overlay\POWRPROF.dll" | ||
600 | 1268 | KeyPath="yes"/> | ||
601 | 1269 | </Component> | ||
602 | 1270 | <Component Id="IconsOverlayPythonComponent" | ||
603 | 1271 | Guid="9c1ed676-e690-11df-9492-0800200c9a66"> | ||
604 | 1272 | <File Id="icons_overlay_python26.dll" | ||
605 | 1273 | Name="python26.dll" | ||
606 | 1274 | DiskId="1" | ||
607 | 1275 | Source="build_results\icons_overlay\python26.dll" | ||
608 | 1276 | KeyPath="yes"/> | ||
609 | 1277 | </Component> | ||
610 | 1278 | <Component Id="IconsOverlayPython26Component" | ||
611 | 1279 | Guid="9c1ed677-e690-11df-9492-0800200c9a66"> | ||
612 | 1280 | <File Id="icons_overlay_pythoncom26.dll" | ||
613 | 1281 | Name="pythoncom26.dll" | ||
614 | 1282 | DiskId="1" | ||
615 | 1283 | Source="build_results\icons_overlay\pythoncom26.dll" | ||
616 | 1284 | KeyPath="yes"/> | ||
617 | 1285 | </Component> | ||
618 | 1286 | <Component Id="IconsOverlayPyWintypes26Component" | ||
619 | 1287 | Guid="9c1ed678-e690-11df-9492-0800200c9a66"> | ||
620 | 1288 | <File Id="icons_overlay_pywintypes26.dll" | ||
621 | 1289 | Name="pywintypes26.dll" | ||
622 | 1290 | DiskId="1" | ||
623 | 1291 | Source="build_results\icons_overlay\pywintypes26.dll" | ||
624 | 1292 | KeyPath="yes"/> | ||
625 | 1293 | </Component> | ||
626 | 1294 | <Component Id="IconsOverlayRegisterComponent" | ||
627 | 1295 | Guid="9c1ed679-e690-11df-9492-0800200c9a66"> | ||
628 | 1296 | <File Id="icons_overlay_register.exe" | ||
629 | 1297 | Name="register.exe" | ||
630 | 1298 | DiskId="1" | ||
631 | 1299 | Source="build_results\icons_overlay\register.exe" | ||
632 | 1300 | KeyPath="yes"/> | ||
633 | 1301 | </Component> | ||
634 | 1302 | <Component Id="IconsOverlaySelectComponent" | ||
635 | 1303 | Guid="9c1ed67a-e690-11df-9492-0800200c9a66"> | ||
636 | 1304 | <File Id="icons_overlay_select.pyd" | ||
637 | 1305 | Name="select.pyd" | ||
638 | 1306 | DiskId="1" | ||
639 | 1307 | Source="build_results\icons_overlay\select.pyd" | ||
640 | 1308 | KeyPath="yes"/> | ||
641 | 1309 | </Component> | ||
642 | 1310 | <Component Id="IconsOverlayUnicodedataComponent" | ||
643 | 1311 | Guid="9c1ed67b-e690-11df-9492-0800200c9a66"> | ||
644 | 1312 | <File Id="icons_overlay_unicodedata.pyd" | ||
645 | 1313 | Name="unicodedata.pyd" | ||
646 | 1314 | DiskId="1" | ||
647 | 1315 | Source="build_results\icons_overlay\unicodedata.pyd" | ||
648 | 1316 | KeyPath="yes"/> | ||
649 | 1317 | </Component> | ||
650 | 1318 | <Component Id="IconsOverlayWx9popnComponent" | ||
651 | 1319 | Guid="9c1ed67c-e690-11df-9492-0800200c9a66"> | ||
652 | 1320 | <File Id="icons_overlay_w9xpopen.exe" | ||
653 | 1321 | Name="w9xpopen.exe" | ||
654 | 1322 | DiskId="1" | ||
655 | 1323 | Source="build_results\icons_overlay\w9xpopen.exe" | ||
656 | 1324 | KeyPath="yes"/> | ||
657 | 1325 | </Component> | ||
658 | 1326 | <Component Id="IconsOverlayWin32ApiComponent" | ||
659 | 1327 | Guid="ac07cf01-e696-11df-9492-0800200c9a66"> | ||
660 | 1328 | <File Id="icons_overlay_win32api.pyd" | ||
661 | 1329 | Name="win32api.pyd" | ||
662 | 1330 | DiskId="1" | ||
663 | 1331 | Source="build_results\icons_overlay\win32api.pyd" | ||
664 | 1332 | KeyPath="yes"/> | ||
665 | 1333 | </Component> | ||
666 | 1334 | <Component Id="IconsOverlayWin32EventComponent" | ||
667 | 1335 | Guid="99db8510-e6af-11df-9492-0800200c9a66"> | ||
668 | 1336 | <File Id="icons_overlay_win32event.pyd" | ||
669 | 1337 | Name="win32event.pyd" | ||
670 | 1338 | DiskId="1" | ||
671 | 1339 | Source="build_results\icons_overlay\win32event.pyd" | ||
672 | 1340 | KeyPath="yes"/> | ||
673 | 1341 | </Component> | ||
674 | 1342 | <Component Id="IconsOverlayWin32FileComponent" | ||
675 | 1343 | Guid="99db8512-e6af-11df-9492-0800200c9a66"> | ||
676 | 1344 | <File Id="icons_overlay_win32file.pyd" | ||
677 | 1345 | Name="win32file.pyd" | ||
678 | 1346 | DiskId="1" | ||
679 | 1347 | Source="build_results\icons_overlay\win32file.pyd" | ||
680 | 1348 | KeyPath="yes"/> | ||
681 | 1349 | </Component> | ||
682 | 1350 | <Component Id="IconsOverlayWin32PipeComponent" | ||
683 | 1351 | Guid="99db8513-e6af-11df-9492-0800200c9a66"> | ||
684 | 1352 | <File Id="icons_overlay_win32pipe.pyd" | ||
685 | 1353 | Name="win32pipe.pyd" | ||
686 | 1354 | DiskId="1" | ||
687 | 1355 | Source="build_results\icons_overlay\win32pipe.pyd" | ||
688 | 1356 | KeyPath="yes"/> | ||
689 | 1357 | </Component> | ||
690 | 1358 | <Component Id="IconsOverlayWin32ProcessComponent" | ||
691 | 1359 | Guid="99db8514-e6af-11df-9492-0800200c9a66"> | ||
692 | 1360 | <File Id="icons_overlay_win32process.pyd" | ||
693 | 1361 | Name="win32process.pyd" | ||
694 | 1362 | DiskId="1" | ||
695 | 1363 | Source="build_results\icons_overlay\win32process.pyd" | ||
696 | 1364 | KeyPath="yes"/> | ||
697 | 1365 | </Component> | ||
698 | 1366 | <Component Id="IconsOverlayWin32PGuiComponent" | ||
699 | 1367 | Guid="99db8523-e6af-11df-9492-0800200c9a66"> | ||
700 | 1368 | <File Id="icons_overlay_winxpgui.pyd" | ||
701 | 1369 | Name="winxpgui.pyd" | ||
702 | 1370 | DiskId="1" | ||
703 | 1371 | Source="build_results\icons_overlay\winxpgui.pyd" | ||
704 | 1372 | KeyPath="yes"/> | ||
705 | 1373 | </Component> | ||
706 | 1374 | </Directory> | ||
707 | 717 | </Directory> | 1375 | </Directory> |
708 | 718 | </Directory> | 1376 | </Directory> |
709 | 719 | </Directory> | 1377 | </Directory> |
710 | @@ -730,6 +1388,9 @@ | |||
711 | 730 | <ComponentRef Id="UbuntuOneGoDaddyClass2CAComponent" /> | 1388 | <ComponentRef Id="UbuntuOneGoDaddyClass2CAComponent" /> |
712 | 731 | <ComponentRef Id="AddedIconComponent" /> | 1389 | <ComponentRef Id="AddedIconComponent" /> |
713 | 732 | <ComponentRef Id="ConflictIconComponent" /> | 1390 | <ComponentRef Id="ConflictIconComponent" /> |
714 | 1391 | <ComponentRef Id="IsPresentUbuntuOneIconOverlayKey" /> | ||
715 | 1392 | <ComponentRef Id="IsNewUbuntuOneIconOverlayKey" /> | ||
716 | 1393 | <ComponentRef Id="IsConflictUbuntuOneIconOverlayKey" /> | ||
717 | 733 | <!-- Client components --> | 1394 | <!-- Client components --> |
718 | 734 | <ComponentRef Id="PhoenixLib" /> | 1395 | <ComponentRef Id="PhoenixLib" /> |
719 | 735 | <ComponentRef Id="AvalonLib" /> | 1396 | <ComponentRef Id="AvalonLib" /> |
720 | @@ -808,8 +1469,89 @@ | |||
721 | 808 | <ComponentRef Id="UbuntuSSO" /> | 1469 | <ComponentRef Id="UbuntuSSO" /> |
722 | 809 | <ComponentRef Id="UbuntuSSOViews" /> | 1470 | <ComponentRef Id="UbuntuSSOViews" /> |
723 | 810 | <ComponentRef Id="Newtonsoft.Json" /> | 1471 | <ComponentRef Id="Newtonsoft.Json" /> |
724 | 1472 | <!-- Cache process --> | ||
725 | 1473 | <ComponentRef Id="EmblemsCTypesComponent" /> | ||
726 | 1474 | <ComponentRef Id="EmblemsHashLibComponent" /> | ||
727 | 1475 | <ComponentRef Id="EmblemsMultiprocessingComponent" /> | ||
728 | 1476 | <ComponentRef Id="EmblemsSocketComponent" /> | ||
729 | 1477 | <ComponentRef Id="EmblemsSSLComponent" /> | ||
730 | 1478 | <ComponentRef Id="EmblemsSysLoaderComponent" /> | ||
731 | 1479 | <ComponentRef Id="EmblemsCoreDebugComponent" /> | ||
732 | 1480 | <ComponentRef Id="EmblemsDelayLoadComponent" /> | ||
733 | 1481 | <ComponentRef Id="EmblemsErrorHandlingComponent" /> | ||
734 | 1482 | <ComponentRef Id="EmblemsHandleComponent" /> | ||
735 | 1483 | <ComponentRef Id="EmblemsInterlockedComponent" /> | ||
736 | 1484 | <ComponentRef Id="EmblemsIOComponent" /> | ||
737 | 1485 | <ComponentRef Id="EmblemsLibraryLoaderComponent" /> | ||
738 | 1486 | <ComponentRef Id="EmblemsLocalizationComponent" /> | ||
739 | 1487 | <ComponentRef Id="EmblemsLocaRegistryComponent" /> | ||
740 | 1488 | <ComponentRef Id="EmblemsMemoryComponent" /> | ||
741 | 1489 | <ComponentRef Id="EmblemsMiscComponent" /> | ||
742 | 1490 | <ComponentRef Id="EmblemsProcessEnvironmentComponent" /> | ||
743 | 1491 | <ComponentRef Id="EmblemsProcessThreadComponent" /> | ||
744 | 1492 | <ComponentRef Id="EmblemsProfileComponent" /> | ||
745 | 1493 | <ComponentRef Id="EmblemsStringComponent" /> | ||
746 | 1494 | <ComponentRef Id="EmblemsSynchComponent" /> | ||
747 | 1495 | <ComponentRef Id="EmblemsSysInfoComponent" /> | ||
748 | 1496 | <ComponentRef Id="EmblemsSecurityComponent" /> | ||
749 | 1497 | <ComponentRef Id="EmblemsBz2Component" /> | ||
750 | 1498 | <ComponentRef Id="EmblemsKernelBaseComponent" /> | ||
751 | 1499 | <ComponentRef Id="EmblemsLibraryComponent" /> | ||
752 | 1500 | <ComponentRef Id="EmblemsMPRComponent" /> | ||
753 | 1501 | <ComponentRef Id="EmblemsMWSOCKComponent" /> | ||
754 | 1502 | <ComponentRef Id="EmblemsPOWRPROFComponent" /> | ||
755 | 1503 | <ComponentRef Id="EmblemsPyexpatComponent" /> | ||
756 | 1504 | <ComponentRef Id="EmblemsPythonDllComponent" /> | ||
757 | 1505 | <ComponentRef Id="EmblemsPyWinTypesComponent" /> | ||
758 | 1506 | <ComponentRef Id="EmblemsSelectComponent" /> | ||
759 | 1507 | <ComponentRef Id="EmblemsUnicodeDataComponent" /> | ||
760 | 1508 | <ComponentRef Id="EmblemsW9xopenComponent" /> | ||
761 | 1509 | <ComponentRef Id="EmblemsWin32ApiComponent" /> | ||
762 | 1510 | <ComponentRef Id="EmblemsWin32EventComponent" /> | ||
763 | 1511 | <ComponentRef Id="EmblemsWin32FileComponent" /> | ||
764 | 1512 | <ComponentRef Id="EmblemsWin32PipeComponent" /> | ||
765 | 1513 | <ComponentRef Id="EmblemsWnetComponent" /> | ||
766 | 1514 | <ComponentRef Id="EmblemsAppComponent" /> | ||
767 | 1515 | <ComponentRef Id="EmblemsCacheAutostart" /> | ||
768 | 1516 | <!-- emblems --> | ||
769 | 1517 | <ComponentRef Id="IconsOverlaySysLoaderComponent" /> | ||
770 | 1518 | <ComponentRef Id="IconsOverlayWinCoreDebugComponent" /> | ||
771 | 1519 | <ComponentRef Id="IconsOverlayWinCoreDelayLoadComponent" /> | ||
772 | 1520 | <ComponentRef Id="IconsOverlayWinCoreErrorHandlingComponent" /> | ||
773 | 1521 | <ComponentRef Id="IconsOverlayWinCoreHandleComponent" /> | ||
774 | 1522 | <ComponentRef Id="IconsOverlayWinCoreInterlockedComponent" /> | ||
775 | 1523 | <ComponentRef Id="IconsOverlayWinCoreIOComponent" /> | ||
776 | 1524 | <ComponentRef Id="IconsOverlayWinCoreLibraryLoaderComponent" /> | ||
777 | 1525 | <ComponentRef Id="IconsOverlayWinCoreLocalizationComponent" /> | ||
778 | 1526 | <ComponentRef Id="IconsOverlayWinCoreMemoryComponent" /> | ||
779 | 1527 | <ComponentRef Id="IconsOverlayWinCoreMiscComponent" /> | ||
780 | 1528 | <ComponentRef Id="IconsOverlayWinCoreProcessEnvironmentComponent" /> | ||
781 | 1529 | <ComponentRef Id="IconsOverlayWinCoreProcessThreadsComponent" /> | ||
782 | 1530 | <ComponentRef Id="IconsOverlayWinCoreProfileComponent" /> | ||
783 | 1531 | <ComponentRef Id="IconsOverlayWinCoreStringComponent" /> | ||
784 | 1532 | <ComponentRef Id="IconsOverlayWinCoreSynchComponent" /> | ||
785 | 1533 | <ComponentRef Id="IconsOverlayWinCoreSysInfoComponent" /> | ||
786 | 1534 | <ComponentRef Id="IconsOverlayWinCoreSecurityBaseComponent" /> | ||
787 | 1535 | <ComponentRef Id="IconsOverlayBz2Component" /> | ||
788 | 1536 | <ComponentRef Id="IconsOverlayKernelComponent" /> | ||
789 | 1537 | <ComponentRef Id="IconsOverlayLibraryComponent" /> | ||
790 | 1538 | <ComponentRef Id="IconsOverlayMswsockComponent" /> | ||
791 | 1539 | <ComponentRef Id="IconsOverlayPowrprofComponent" /> | ||
792 | 1540 | <ComponentRef Id="IconsOverlayPythonComponent" /> | ||
793 | 1541 | <ComponentRef Id="IconsOverlayPython26Component" /> | ||
794 | 1542 | <ComponentRef Id="IconsOverlayPyWintypes26Component" /> | ||
795 | 1543 | <ComponentRef Id="IconsOverlayRegisterComponent" /> | ||
796 | 1544 | <ComponentRef Id="IconsOverlaySelectComponent" /> | ||
797 | 1545 | <ComponentRef Id="IconsOverlayUnicodedataComponent" /> | ||
798 | 1546 | <ComponentRef Id="IconsOverlayWx9popnComponent" /> | ||
799 | 1547 | <ComponentRef Id="IconsOverlayWin32ApiComponent" /> | ||
800 | 1548 | <ComponentRef Id="IconsOverlayWin32EventComponent" /> | ||
801 | 1549 | <ComponentRef Id="IconsOverlayWin32FileComponent" /> | ||
802 | 1550 | <ComponentRef Id="IconsOverlayWin32PipeComponent" /> | ||
803 | 1551 | <ComponentRef Id="IconsOverlayWin32ProcessComponent" /> | ||
804 | 1552 | <ComponentRef Id="IconsOverlayWin32PGuiComponent" /> | ||
805 | 811 | </Feature> | 1553 | </Feature> |
807 | 812 | 1554 | ||
808 | 813 | <UI Id="WixUI_Minimal_No_License"> | 1555 | <UI Id="WixUI_Minimal_No_License"> |
809 | 814 | <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> | 1556 | <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> |
810 | 815 | <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> | 1557 | <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> |
811 | @@ -854,5 +1596,18 @@ | |||
812 | 854 | <WixVariable Id="WixUINewIco" Value="path\new.ico" /> | 1596 | <WixVariable Id="WixUINewIco" Value="path\new.ico" /> |
813 | 855 | <WixVariable Id="WixUIUpIco" Value="path\up.ico" /> --> | 1597 | <WixVariable Id="WixUIUpIco" Value="path\up.ico" /> --> |
814 | 856 | 1598 | ||
815 | 1599 | <CustomAction Id="RegisterEmblems" | ||
816 | 1600 | FileKey="icons_overlay_register.exe" | ||
817 | 1601 | ExeCommand="" | ||
818 | 1602 | Impersonate="no" | ||
819 | 1603 | Execute="deferred" | ||
820 | 1604 | Return="ignore"/> | ||
821 | 1605 | |||
822 | 1606 | <InstallExecuteSequence> | ||
823 | 1607 | |||
824 | 1608 | <Custom Action="RegisterEmblems" | ||
825 | 1609 | After="InstallFiles" /> | ||
826 | 1610 | </InstallExecuteSequence> | ||
827 | 1611 | |||
828 | 857 | </Product> | 1612 | </Product> |
829 | 858 | </Wix> | 1613 | </Wix> |
830 | 859 | \ No newline at end of file | 1614 | \ No newline at end of file |
831 | 860 | 1615 | ||
832 | === modified file 'main.build' | |||
833 | --- main.build 2010-10-20 23:23:31 +0000 | |||
834 | +++ main.build 2010-11-02 22:22:53 +0000 | |||
835 | @@ -225,10 +225,18 @@ | |||
836 | 225 | 225 | ||
837 | 226 | <exec basedir="${python_path}" | 226 | <exec basedir="${python_path}" |
838 | 227 | managed="true" | 227 | managed="true" |
840 | 228 | workingdir="src" | 228 | workingdir="src/sync" |
841 | 229 | program="python.exe" | 229 | program="python.exe" |
842 | 230 | commandline="setup.py py2exe --packages=ubuntuone.storageprotocol" /> | 230 | commandline="setup.py py2exe --packages=ubuntuone.storageprotocol" /> |
843 | 231 | 231 | ||
844 | 232 | <!-- pack the program used to cache the overlays info. --> | ||
845 | 233 | |||
846 | 234 | <exec basedir="${python_path}" | ||
847 | 235 | managed="true" | ||
848 | 236 | workingdir="src/emblems_cache" | ||
849 | 237 | program="python.exe" | ||
850 | 238 | commandline="setup.py py2exe --packages=pkg_resources" /> | ||
851 | 239 | |||
852 | 232 | </target> | 240 | </target> |
853 | 233 | 241 | ||
854 | 234 | <target name="installer" | 242 | <target name="installer" |
855 | @@ -277,10 +285,10 @@ | |||
856 | 277 | <include name="*.config" /> | 285 | <include name="*.config" /> |
857 | 278 | </fileset> | 286 | </fileset> |
858 | 279 | </copy> | 287 | </copy> |
860 | 280 | 288 | ||
861 | 281 | <!-- copy the results of the package_python to the install dir --> | 289 | <!-- copy the results of the package_python to the install dir --> |
862 | 282 | <copy todir="${build_results}/u1sync" flatten="true"> | 290 | <copy todir="${build_results}/u1sync" flatten="true"> |
864 | 283 | <fileset basedir="src/dist"> | 291 | <fileset basedir="src/sync/dist"> |
865 | 284 | <include name="*.*" /> | 292 | <include name="*.*" /> |
866 | 285 | </fileset> | 293 | </fileset> |
867 | 286 | </copy> | 294 | </copy> |
868 | @@ -291,6 +299,18 @@ | |||
869 | 291 | </fileset> | 299 | </fileset> |
870 | 292 | </copy> | 300 | </copy> |
871 | 293 | 301 | ||
872 | 302 | <copy todir="${build_results}/emblems_cache" flatten="true"> | ||
873 | 303 | <fileset basedir="src/emblems_cache/dist"> | ||
874 | 304 | <include name="*.*" /> | ||
875 | 305 | </fileset> | ||
876 | 306 | </copy> | ||
877 | 307 | |||
878 | 308 | <copy todir="${build_results}/icons_overlay" flatten="true"> | ||
879 | 309 | <fileset basedir="src/icons_overlay/dist"> | ||
880 | 310 | <include name="*.*" /> | ||
881 | 311 | </fileset> | ||
882 | 312 | </copy> | ||
883 | 313 | |||
884 | 294 | <!-- copy the correct views lib --> | 314 | <!-- copy the correct views lib --> |
885 | 295 | 315 | ||
886 | 296 | <copy todir="${build_results}/Client" flatten="true"> | 316 | <copy todir="${build_results}/Client" flatten="true"> |
887 | 297 | 317 | ||
888 | === modified file 'src/Version.cs' | |||
889 | --- src/Version.cs 2010-10-12 10:06:34 +0000 | |||
890 | +++ src/Version.cs 2010-11-02 22:22:53 +0000 | |||
891 | @@ -3,13 +3,13 @@ | |||
892 | 3 | //------------------------------------------------------------------------------ | 3 | //------------------------------------------------------------------------------ |
893 | 4 | // <auto-generated> | 4 | // <auto-generated> |
894 | 5 | // This code was generated by a tool. | 5 | // This code was generated by a tool. |
896 | 6 | // Runtime Version:2.0.50727.4952 | 6 | // Runtime Version:4.0.30319.1 |
897 | 7 | // | 7 | // |
898 | 8 | // Changes to this file may cause incorrect behavior and will be lost if | 8 | // Changes to this file may cause incorrect behavior and will be lost if |
899 | 9 | // the code is regenerated. | 9 | // the code is regenerated. |
900 | 10 | // </auto-generated> | 10 | // </auto-generated> |
901 | 11 | //------------------------------------------------------------------------------ | 11 | //------------------------------------------------------------------------------ |
902 | 12 | 12 | ||
905 | 13 | [assembly: AssemblyVersionAttribute("1.0.611.8185")] | 13 | [assembly: AssemblyVersionAttribute("1.0.623.7177")] |
906 | 14 | [assembly: AssemblyFileVersionAttribute("1.0.611.8185")] | 14 | [assembly: AssemblyFileVersionAttribute("1.0.623.7177")] |
907 | 15 | 15 | ||
908 | 16 | 16 | ||
909 | === added directory 'src/emblems_cache' | |||
910 | === added file 'src/emblems_cache/setup.py' | |||
911 | --- src/emblems_cache/setup.py 1970-01-01 00:00:00 +0000 | |||
912 | +++ src/emblems_cache/setup.py 2010-11-02 22:22:53 +0000 | |||
913 | @@ -0,0 +1,52 @@ | |||
914 | 1 | #!/usr/bin/env python | ||
915 | 2 | # Copyright (C) 2010 Canonical - All Rights Reserved | ||
916 | 3 | |||
917 | 4 | """ """ | ||
918 | 5 | import sys | ||
919 | 6 | from glob import glob | ||
920 | 7 | |||
921 | 8 | # ModuleFinder can't handle runtime changes to __path__, but win32com uses them | ||
922 | 9 | try: | ||
923 | 10 | # py2exe 0.6.4 introduced a replacement modulefinder. | ||
924 | 11 | # This means we have to add package paths there, not to the built-in | ||
925 | 12 | # one. If this new modulefinder gets integrated into Python, then | ||
926 | 13 | # we might be able to revert this some day. | ||
927 | 14 | # if this doesn't work, try import modulefinder | ||
928 | 15 | try: | ||
929 | 16 | import py2exe.mf as modulefinder | ||
930 | 17 | except ImportError: | ||
931 | 18 | import modulefinder | ||
932 | 19 | import win32com | ||
933 | 20 | for p in win32com.__path__[1:]: | ||
934 | 21 | modulefinder.AddPackagePath("win32com", p) | ||
935 | 22 | for extra in ["win32com.shell" ,"win32com.api", "win32event", "win32pipe", "win32file"]: | ||
936 | 23 | __import__(extra) | ||
937 | 24 | m = sys.modules[extra] | ||
938 | 25 | for p in m.__path__[1:]: | ||
939 | 26 | modulefinder.AddPackagePath(extra, p) | ||
940 | 27 | except ImportError: | ||
941 | 28 | # no build path setup, no worries. | ||
942 | 29 | pass | ||
943 | 30 | |||
944 | 31 | from distutils.core import setup | ||
945 | 32 | import py2exe | ||
946 | 33 | |||
947 | 34 | if __name__ == '__main__': | ||
948 | 35 | |||
949 | 36 | setup( | ||
950 | 37 | options = { | ||
951 | 38 | "py2exe": { | ||
952 | 39 | "compressed": 1, | ||
953 | 40 | "optimize": 2}}, | ||
954 | 41 | name='emblems_cache', | ||
955 | 42 | version='0.0.1', | ||
956 | 43 | author = "Canonical Online Services Hackers", | ||
957 | 44 | description="""Cache utility used to allow a better performance wen | ||
958 | 45 | working with windows emblems.""", | ||
959 | 46 | data_files = [("Microsoft.VC90.CRT", glob(r'C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\*.*'))], | ||
960 | 47 | license='GPLv3', | ||
961 | 48 | console=['windows_emblems_cache.py'], | ||
962 | 49 | requires=[ | ||
963 | 50 | 'python (>= 2.5)', | ||
964 | 51 | ], | ||
965 | 52 | ) | ||
966 | 0 | 53 | ||
967 | === added file 'src/emblems_cache/windows_emblems_cache.py' | |||
968 | --- src/emblems_cache/windows_emblems_cache.py 1970-01-01 00:00:00 +0000 | |||
969 | +++ src/emblems_cache/windows_emblems_cache.py 2010-11-02 22:22:53 +0000 | |||
970 | @@ -0,0 +1,111 @@ | |||
971 | 1 | # u1syn.windows_emblems_cache | ||
972 | 2 | # | ||
973 | 3 | # u1sync metadata routines | ||
974 | 4 | # | ||
975 | 5 | # Author: Manuel de la Pena <manuel.delapena@canonical.com> | ||
976 | 6 | # | ||
977 | 7 | # Copyright 2010 Canonical Ltd. | ||
978 | 8 | # | ||
979 | 9 | # This program is free software: you can redistribute it and/or modify it | ||
980 | 10 | # under the terms of the GNU General Public License version 3, as published | ||
981 | 11 | # by the Free Software Foundation. | ||
982 | 12 | # | ||
983 | 13 | # This program is distributed in the hope that it will be useful, but | ||
984 | 14 | # WITHOUT ANY WARRANTY; without even the implied warranties of | ||
985 | 15 | # MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR | ||
986 | 16 | # PURPOSE. See the GNU General Public License for more details. | ||
987 | 17 | # | ||
988 | 18 | # You should have received a copy of the GNU General Public License along | ||
989 | 19 | # with this program. If not, see <http://www.gnu.org/licenses/>. | ||
990 | 20 | import json | ||
991 | 21 | from itertools import count | ||
992 | 22 | from multiprocessing import Process, freeze_support | ||
993 | 23 | import win32event, win32pipe, win32file, pywintypes, winerror | ||
994 | 24 | |||
995 | 25 | from u1sync.constants import (WAS_MODIFIED_MESSAGE, | ||
996 | 26 | WAS_ADDED_MESSAGE, | ||
997 | 27 | IS_IN_ROOT) | ||
998 | 28 | from u1sync.icons import FileTracker | ||
999 | 29 | |||
1000 | 30 | class IconsOverlayCacheService(object): | ||
1001 | 31 | """Represents the object that caches the embles state.""" | ||
1002 | 32 | |||
1003 | 33 | pipe_name = r'\\.\pipe\ubuntuone_emblems' | ||
1004 | 34 | |||
1005 | 35 | |||
1006 | 36 | def __init__(self, tracker): | ||
1007 | 37 | self._tracker = tracker | ||
1008 | 38 | |||
1009 | 39 | def _process_request(self, message, pipe_handle): | ||
1010 | 40 | """Process the message from the emblems client.""" | ||
1011 | 41 | print message["type"] | ||
1012 | 42 | reply = {} | ||
1013 | 43 | if(message["type"] == WAS_MODIFIED_MESSAGE): | ||
1014 | 44 | reply["type"] = WAS_MODIFIED_MESSAGE | ||
1015 | 45 | reply["reply"] = self._tracker.file_was_modified( | ||
1016 | 46 | message["request"]) | ||
1017 | 47 | if(message["type"] == WAS_ADDED_MESSAGE): | ||
1018 | 48 | reply["type"] = WAS_MODIFIED_MESSAGE | ||
1019 | 49 | reply["reply"] = self._tracker.file_was_added( | ||
1020 | 50 | message["request"]) | ||
1021 | 51 | if(message["type"] == IS_IN_ROOT): | ||
1022 | 52 | reply["type"] = IS_IN_ROOT, | ||
1023 | 53 | reply["reply"] = self._tracker.file_is_in_ubuntuone_root( | ||
1024 | 54 | message["request"]) | ||
1025 | 55 | print reply | ||
1026 | 56 | win32file.WriteFile(pipe_handle, json.dumps(reply), None) | ||
1027 | 57 | win32file.FlushFileBuffers(pipe_handle) | ||
1028 | 58 | |||
1029 | 59 | def run(self): | ||
1030 | 60 | """Start the pipe server for communication in a thread.""" | ||
1031 | 61 | open_mode = win32pipe.PIPE_ACCESS_DUPLEX | win32file.FILE_FLAG_OVERLAPPED | ||
1032 | 62 | pipe_mode = win32pipe.PIPE_TYPE_MESSAGE | ||
1033 | 63 | |||
1034 | 64 | sa = pywintypes.SECURITY_ATTRIBUTES() | ||
1035 | 65 | sa.SetSecurityDescriptorDacl(1, None, 0) | ||
1036 | 66 | |||
1037 | 67 | pipe_handle = win32pipe.CreateNamedPipe( | ||
1038 | 68 | self.pipe_name, open_mode, pipe_mode, | ||
1039 | 69 | win32pipe.PIPE_UNLIMITED_INSTANCES, | ||
1040 | 70 | 0, 0, 6000, sa | ||
1041 | 71 | ) | ||
1042 | 72 | |||
1043 | 73 | overlapped = pywintypes.OVERLAPPED() | ||
1044 | 74 | overlapped.hEvent = win32event.CreateEvent(None, 0, 0, None) | ||
1045 | 75 | |||
1046 | 76 | while 1: | ||
1047 | 77 | try: | ||
1048 | 78 | hr = win32pipe.ConnectNamedPipe(pipe_handle, overlapped) | ||
1049 | 79 | except: | ||
1050 | 80 | # Error connecting pipe | ||
1051 | 81 | pipe_handle.Close() | ||
1052 | 82 | break | ||
1053 | 83 | |||
1054 | 84 | if hr == winerror.ERROR_PIPE_CONNECTED: | ||
1055 | 85 | # Client is fast, and already connected - signal event | ||
1056 | 86 | win32event.SetEvent(overlapped.hEvent) | ||
1057 | 87 | rc = win32event.WaitForSingleObject( | ||
1058 | 88 | overlapped.hEvent, win32event.INFINITE | ||
1059 | 89 | ) | ||
1060 | 90 | if rc == win32event.WAIT_OBJECT_0: | ||
1061 | 91 | try: | ||
1062 | 92 | hr, data = win32file.ReadFile(pipe_handle, 3000) | ||
1063 | 93 | message = json.loads(data) | ||
1064 | 94 | self._process_request(message, pipe_handle) | ||
1065 | 95 | win32pipe.DisconnectNamedPipe(pipe_handle) | ||
1066 | 96 | except win32file.error: | ||
1067 | 97 | continue | ||
1068 | 98 | |||
1069 | 99 | if __name__ == '__main__': | ||
1070 | 100 | freeze_support() | ||
1071 | 101 | tracker = FileTracker() | ||
1072 | 102 | # creat diff threads to listen to messages form the emblems | ||
1073 | 103 | for thread_number in count(0): | ||
1074 | 104 | cache_service = IconsOverlayCacheService(tracker) | ||
1075 | 105 | listening_thread = Process(target=cache_service.run, name='Emblems thread %i' % thread_number) | ||
1076 | 106 | listening_thread.start() | ||
1077 | 107 | if thread_number == 15: | ||
1078 | 108 | break | ||
1079 | 109 | # listen with an other object | ||
1080 | 110 | main_cache = IconsOverlayCacheService(tracker) | ||
1081 | 111 | main_cache.run() | ||
1082 | 0 | \ No newline at end of file | 112 | \ No newline at end of file |
1083 | 1 | 113 | ||
1084 | === added directory 'src/icons_overlay' | |||
1085 | === added file 'src/icons_overlay/icons_overlay.py' | |||
1086 | --- src/icons_overlay/icons_overlay.py 1970-01-01 00:00:00 +0000 | |||
1087 | +++ src/icons_overlay/icons_overlay.py 2010-11-02 22:22:53 +0000 | |||
1088 | @@ -0,0 +1,120 @@ | |||
1089 | 1 | import os | ||
1090 | 2 | import json | ||
1091 | 3 | from win32com.shell import shell, shellcon | ||
1092 | 4 | import winerror, win32file, win32pipe | ||
1093 | 5 | |||
1094 | 6 | pipe_name = r'\\.\pipe\ubuntuone_emblems' | ||
1095 | 7 | |||
1096 | 8 | def create_pipe_handle(): | ||
1097 | 9 | hPipe = win32file.CreateFile( | ||
1098 | 10 | pipe_name, # pipe name | ||
1099 | 11 | win32file.GENERIC_READ | # read and write access | ||
1100 | 12 | win32file.GENERIC_WRITE, | ||
1101 | 13 | 0, # no sharing | ||
1102 | 14 | None, # default security attributes | ||
1103 | 15 | win32file.OPEN_EXISTING, # opens existing pipe | ||
1104 | 16 | 0, # default attributes | ||
1105 | 17 | None) # no template file | ||
1106 | 18 | # set the handler state | ||
1107 | 19 | success = win32pipe.SetNamedPipeHandleState( | ||
1108 | 20 | hPipe, # pipe handle | ||
1109 | 21 | win32pipe.PIPE_READMODE_MESSAGE, # new pipe mode | ||
1110 | 22 | None, # don't set maximum bytes | ||
1111 | 23 | None) # don't set maximum time | ||
1112 | 24 | return hPipe | ||
1113 | 25 | |||
1114 | 26 | def send_message(message): | ||
1115 | 27 | """Send message over the pipe.""" | ||
1116 | 28 | pipe_handle = create_pipe_handle() | ||
1117 | 29 | if pipe_handle: | ||
1118 | 30 | # create the overlapped to be used | ||
1119 | 31 | win32file.WriteFile(pipe_handle, json.dumps(message), None) | ||
1120 | 32 | win32file.FlushFileBuffers(pipe_handle) | ||
1121 | 33 | rc, message = win32file.ReadFile(pipe_handle, 3000) | ||
1122 | 34 | if rc == 0: | ||
1123 | 35 | reply = json.loads(message) | ||
1124 | 36 | return reply["reply"] | ||
1125 | 37 | return False | ||
1126 | 38 | |||
1127 | 39 | def file_was_added(fname): | ||
1128 | 40 | """Request status of the file to the cache.""" | ||
1129 | 41 | # create the message to be sent to the cache | ||
1130 | 42 | message = {"type": "added", | ||
1131 | 43 | "request": fname} | ||
1132 | 44 | return send_message(message) | ||
1133 | 45 | |||
1134 | 46 | def file_was_modified(fname): | ||
1135 | 47 | """Request status of the file to the cache.""" | ||
1136 | 48 | # create the message to be sent to the cache | ||
1137 | 49 | message = {"type": "modified", | ||
1138 | 50 | "request": fname} | ||
1139 | 51 | return send_message(message) | ||
1140 | 52 | |||
1141 | 53 | def file_is_in_ubuntuone_root(fname): | ||
1142 | 54 | """Request if the file is in the ubuntu one root.""" | ||
1143 | 55 | message = {"type":"in_root", | ||
1144 | 56 | "request":fname} | ||
1145 | 57 | return send_message(message) | ||
1146 | 58 | |||
1147 | 59 | class IsPresentUbuntuOneIconOverlay: | ||
1148 | 60 | |||
1149 | 61 | _reg_clsid_ = '{4FC554DF-F0EE-4A4F-966C-9C49CCF14D59}' | ||
1150 | 62 | _reg_progid_ = 'TJG.IsPresentUbuntuOneIconOverlay' | ||
1151 | 63 | _reg_desc_ = 'Icon Overlay Handler to indicate Python packages' | ||
1152 | 64 | _public_methods_ = ['GetOverlayInfo', 'GetPriority', 'IsMemberOf'] | ||
1153 | 65 | _com_interfaces_ = [shell.IID_IShellIconOverlayIdentifier] | ||
1154 | 66 | |||
1155 | 67 | def __init__(self): | ||
1156 | 68 | self.cache = {} | ||
1157 | 69 | |||
1158 | 70 | def GetOverlayInfo(self): | ||
1159 | 71 | return (r'C:\Users\Mandel\Documents\Projects\ubuntuone\net\fix_overlay\data\added.ico', 0, shellcon.ISIOI_ICONFILE) | ||
1160 | 72 | |||
1161 | 73 | def GetPriority(self): | ||
1162 | 74 | return 50 | ||
1163 | 75 | |||
1164 | 76 | def IsMemberOf(self, fname, attributes): | ||
1165 | 77 | if file_was_added(fname) and\ | ||
1166 | 78 | not file_was_modified(fname): | ||
1167 | 79 | return winerror.S_OK | ||
1168 | 80 | return winerror.E_FAIL | ||
1169 | 81 | |||
1170 | 82 | class IsNewUbuntuOneIconOverlay: | ||
1171 | 83 | |||
1172 | 84 | _reg_clsid_ = '{a9694f20-ddbe-11df-85ca-0800200c9a66}' | ||
1173 | 85 | _reg_progid_ = 'TJG.IsNewUbuntuOneIconOverlay' | ||
1174 | 86 | _reg_desc_ = 'Icon Overlay Handler to indicate Python packages' | ||
1175 | 87 | _public_methods_ = ['GetOverlayInfo', 'GetPriority', 'IsMemberOf'] | ||
1176 | 88 | _com_interfaces_ = [shell.IID_IShellIconOverlayIdentifier] | ||
1177 | 89 | |||
1178 | 90 | def GetOverlayInfo(self): | ||
1179 | 91 | return (r'C:\Users\Mandel\Documents\Projects\ubuntuone\net\fix_overlay\data\new.ico', 0, shellcon.ISIOI_ICONFILE) | ||
1180 | 92 | |||
1181 | 93 | def GetPriority(self): | ||
1182 | 94 | return 50 | ||
1183 | 95 | |||
1184 | 96 | def IsMemberOf(self, fname, attributes): | ||
1185 | 97 | if file_is_in_ubuntuone_root(fname) and\ | ||
1186 | 98 | not file_was_added(fname): | ||
1187 | 99 | return winerror.S_OK | ||
1188 | 100 | return winerror.E_FAIL | ||
1189 | 101 | |||
1190 | 102 | class IsConflictUbuntuOneIconOverlay: | ||
1191 | 103 | |||
1192 | 104 | _reg_clsid_ = '{3dc7f120-ded8-11df-85ca-0800200c9a66}' | ||
1193 | 105 | _reg_progid_ = 'TJG.IsConflictUbuntuOneIconOverlay' | ||
1194 | 106 | _reg_desc_ = 'Icon Overlay Handler to indicate Python packages' | ||
1195 | 107 | _public_methods_ = ['GetOverlayInfo', 'GetPriority', 'IsMemberOf'] | ||
1196 | 108 | _com_interfaces_ = [shell.IID_IShellIconOverlayIdentifier] | ||
1197 | 109 | |||
1198 | 110 | def GetOverlayInfo(self): | ||
1199 | 111 | return (r'C:\Users\Mandel\Documents\Projects\ubuntuone\net\fix_overlay\data\conflict.ico', 0, shellcon.ISIOI_ICONFILE) | ||
1200 | 112 | |||
1201 | 113 | def GetPriority(self): | ||
1202 | 114 | return 50 | ||
1203 | 115 | |||
1204 | 116 | def IsMemberOf(self, fname, attributes): | ||
1205 | 117 | if file_was_added(fname) and\ | ||
1206 | 118 | file_was_modified(fname): | ||
1207 | 119 | return winerror.S_OK | ||
1208 | 120 | return winerror.E_FAIL | ||
1209 | 0 | \ No newline at end of file | 121 | \ No newline at end of file |
1210 | 1 | 122 | ||
1211 | === added file 'src/icons_overlay/register.py' | |||
1212 | --- src/icons_overlay/register.py 1970-01-01 00:00:00 +0000 | |||
1213 | +++ src/icons_overlay/register.py 2010-11-02 22:22:53 +0000 | |||
1214 | @@ -0,0 +1,20 @@ | |||
1215 | 1 | """ | ||
1216 | 2 | Register the windows shell extensions that will allow to | ||
1217 | 3 | show icon overlays for ubuntu one. | ||
1218 | 4 | """ | ||
1219 | 5 | import _winreg | ||
1220 | 6 | import win32api | ||
1221 | 7 | import win32con | ||
1222 | 8 | import win32com.server.register | ||
1223 | 9 | import sys | ||
1224 | 10 | from icons_overlay import (IsPresentUbuntuOneIconOverlay, | ||
1225 | 11 | IsNewUbuntuOneIconOverlay, | ||
1226 | 12 | IsConflictUbuntuOneIconOverlay) | ||
1227 | 13 | |||
1228 | 14 | # added files | ||
1229 | 15 | win32com.server.register.UseCommandLine (IsPresentUbuntuOneIconOverlay) | ||
1230 | 16 | # new files | ||
1231 | 17 | win32com.server.register.UseCommandLine (IsNewUbuntuOneIconOverlay) | ||
1232 | 18 | # conflict | ||
1233 | 19 | win32com.server.register.UseCommandLine (IsConflictUbuntuOneIconOverlay) | ||
1234 | 20 | sys.exit(0) | ||
1235 | 0 | \ No newline at end of file | 21 | \ No newline at end of file |
1236 | 1 | 22 | ||
1237 | === added file 'src/icons_overlay/setup.py' | |||
1238 | --- src/icons_overlay/setup.py 1970-01-01 00:00:00 +0000 | |||
1239 | +++ src/icons_overlay/setup.py 2010-11-02 22:22:53 +0000 | |||
1240 | @@ -0,0 +1,50 @@ | |||
1241 | 1 | #!/usr/bin/env python | ||
1242 | 2 | # Copyright (C) 2010 Canonical - All Rights Reserved | ||
1243 | 3 | |||
1244 | 4 | """ """ | ||
1245 | 5 | import sys | ||
1246 | 6 | from glob import glob | ||
1247 | 7 | |||
1248 | 8 | # ModuleFinder can't handle runtime changes to __path__, but win32com uses them | ||
1249 | 9 | try: | ||
1250 | 10 | # py2exe 0.6.4 introduced a replacement modulefinder. | ||
1251 | 11 | # This means we have to add package paths there, not to the built-in | ||
1252 | 12 | # one. If this new modulefinder gets integrated into Python, then | ||
1253 | 13 | # we might be able to revert this some day. | ||
1254 | 14 | # if this doesn't work, try import modulefinder | ||
1255 | 15 | try: | ||
1256 | 16 | import py2exe.mf as modulefinder | ||
1257 | 17 | except ImportError: | ||
1258 | 18 | import modulefinder | ||
1259 | 19 | import win32com | ||
1260 | 20 | for p in win32com.__path__[1:]: | ||
1261 | 21 | modulefinder.AddPackagePath("win32com", p) | ||
1262 | 22 | for extra in ["win32com.shell" ,"win32com.api"]: | ||
1263 | 23 | __import__(extra) | ||
1264 | 24 | m = sys.modules[extra] | ||
1265 | 25 | for p in m.__path__[1:]: | ||
1266 | 26 | modulefinder.AddPackagePath(extra, p) | ||
1267 | 27 | except ImportError: | ||
1268 | 28 | # no build path setup, no worries. | ||
1269 | 29 | pass | ||
1270 | 30 | |||
1271 | 31 | from distutils.core import setup | ||
1272 | 32 | import py2exe | ||
1273 | 33 | |||
1274 | 34 | if __name__ == '__main__': | ||
1275 | 35 | |||
1276 | 36 | setup( | ||
1277 | 37 | options = { | ||
1278 | 38 | "py2exe": { | ||
1279 | 39 | "compressed": 1, | ||
1280 | 40 | "optimize": 2}}, | ||
1281 | 41 | name='u1ovelay_register', | ||
1282 | 42 | version='0.0.1', | ||
1283 | 43 | author = "Canonical Online Services Hackers", | ||
1284 | 44 | description="""Icon overlays used by ubuntuone""", | ||
1285 | 45 | data_files = [("Microsoft.VC90.CRT", glob(r'C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\*.*'))], | ||
1286 | 46 | license='GPLv3', | ||
1287 | 47 | console=['register.py'], | ||
1288 | 48 | requires=[ | ||
1289 | 49 | 'python (>= 2.5)'], | ||
1290 | 50 | ) | ||
1291 | 0 | 51 | ||
1292 | === added directory 'src/sync' | |||
1293 | === renamed file 'src/setup.py' => 'src/sync/setup.py' | |||
1294 | === renamed directory 'src/u1sync' => 'src/sync/u1sync' | |||
1295 | === modified file 'src/sync/u1sync/constants.py' | |||
1296 | --- src/u1sync/constants.py 2010-08-25 22:44:43 +0000 | |||
1297 | +++ src/sync/u1sync/constants.py 2010-11-02 22:22:53 +0000 | |||
1298 | @@ -28,3 +28,7 @@ | |||
1299 | 28 | SPECIAL_FILE_RE = re.compile(".*\\.(" | 28 | SPECIAL_FILE_RE = re.compile(".*\\.(" |
1300 | 29 | "(u1)?partial|part|" | 29 | "(u1)?partial|part|" |
1301 | 30 | "(u1)?conflict(\\.[0-9]+)?)$") | 30 | "(u1)?conflict(\\.[0-9]+)?)$") |
1302 | 31 | |||
1303 | 32 | WAS_MODIFIED_MESSAGE = "modified" | ||
1304 | 33 | WAS_ADDED_MESSAGE = "added" | ||
1305 | 34 | IS_IN_ROOT = "in_root" | ||
1306 | 31 | \ No newline at end of file | 35 | \ No newline at end of file |
1307 | 32 | 36 | ||
1308 | === modified file 'src/sync/u1sync/genericmerge.py' | |||
1309 | --- src/u1sync/genericmerge.py 2010-08-26 14:50:11 +0000 | |||
1310 | +++ src/sync/u1sync/genericmerge.py 2010-11-02 22:22:53 +0000 | |||
1311 | @@ -55,8 +55,6 @@ | |||
1312 | 55 | type_str = "DIR " | 55 | type_str = "DIR " |
1313 | 56 | else: | 56 | else: |
1314 | 57 | type_str = "FILE" | 57 | type_str = "FILE" |
1315 | 58 | print "%s%-36s %s %s %s" % (indent, tree.uuid, type_str, name, | ||
1316 | 59 | tree.content_hash) | ||
1317 | 60 | if tree.node_type == DIRECTORY and tree.children is not None: | 58 | if tree.node_type == DIRECTORY and tree.children is not None: |
1318 | 61 | for name in sorted(tree.children.keys()): | 59 | for name in sorted(tree.children.keys()): |
1319 | 62 | subtree = tree.children[name] | 60 | subtree = tree.children[name] |
1320 | 63 | 61 | ||
1321 | === modified file 'src/sync/u1sync/icons.py' | |||
1322 | --- src/u1sync/icons.py 2010-10-20 11:18:55 +0000 | |||
1323 | +++ src/sync/u1sync/icons.py 2010-11-02 22:22:53 +0000 | |||
1324 | @@ -1,6 +1,5 @@ | |||
1325 | 1 | # Ubuntu One windows Ion overlays | 1 | # Ubuntu One windows Ion overlays |
1326 | 2 | # | 2 | # |
1327 | 3 | # Author: Tim Cole <tim.cole@canonical.com> | ||
1328 | 4 | # | 3 | # |
1329 | 5 | # Copyright 2009 Canonical Ltd. | 4 | # Copyright 2009 Canonical Ltd. |
1330 | 6 | # | 5 | # |
1331 | @@ -16,88 +15,125 @@ | |||
1332 | 16 | # You should have received a copy of the GNU General Public License along | 15 | # You should have received a copy of the GNU General Public License along |
1333 | 17 | # with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | # with this program. If not, see <http://www.gnu.org/licenses/>. |
1334 | 18 | import os | 17 | import os |
1342 | 19 | from win32com.shell import shell, shellcon | 18 | import hashlib |
1343 | 20 | import winerror | 19 | import shutil |
1344 | 21 | import _winreg | 20 | from metadata import read |
1338 | 22 | import win32api | ||
1339 | 23 | import win32con | ||
1340 | 24 | import win32com.server.register | ||
1341 | 25 | from u1sync import metadata | ||
1345 | 26 | from u1sync.constants import METADATA_DIR_NAME | 21 | from u1sync.constants import METADATA_DIR_NAME |
1346 | 22 | |||
1347 | 23 | def calculate_hash(path): | ||
1348 | 24 | if not path.startswith("\\\\?\\"): | ||
1349 | 25 | path = "\\\\?\\" + path | ||
1350 | 26 | sum = hashlib.sha1() | ||
1351 | 27 | 27 | ||
1393 | 28 | UBUNTU_ONE_ICON_REG_PATH = r"Software\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\UbuntuOneIconOverlay" | 28 | class HashStream(object): |
1394 | 29 | def get_icon_root_location(): | 29 | """Stream that computes hashes.""" |
1395 | 30 | # First open the registry hive | 30 | def write(self, bytes): |
1396 | 31 | hive = _winreg.ConnectRegistry(None, _winreg.HKEY_LOCAL_MACHINE) | 31 | """Accumulate bytes.""" |
1397 | 32 | key = _winreg.OpenKey(hive, "Software\Canonical\UbuntuOne") | 32 | sum.update(bytes) |
1398 | 33 | for i in range(0, _winreg.QueryInfoKey(key)[1]): | 33 | |
1399 | 34 | name, value, val_type = _winreg.EnumValue(key, i) | 34 | with open(path, "rb") as stream: |
1400 | 35 | # Common AppData will always be present unless the user played with regedit | 35 | shutil.copyfileobj(stream, HashStream()) |
1401 | 36 | if name == "InstallationPath": | 36 | return "sha1:%s" % sum.hexdigest() |
1402 | 37 | return os.path.join(value, "icons") | 37 | |
1403 | 38 | 38 | class FileTracker(object): | |
1404 | 39 | def file_is_in_ubuntuone_root(path): | 39 | """Track the operations on files""" |
1405 | 40 | absolute_path = os.path.abspath(path) | 40 | |
1406 | 41 | while True: | 41 | def __init__(self): |
1407 | 42 | metadir = os.path.join(absolute_path, METADATA_DIR_NAME) | 42 | self.root_cache = {} |
1408 | 43 | if os.path.exists(metadir): | 43 | self.added_cache = {} |
1409 | 44 | return True | 44 | self.modified_cache = {} |
1410 | 45 | if absolute_path == "C:\\": | 45 | |
1411 | 46 | return False | 46 | def file_is_in_ubuntuone_root(self, path): |
1412 | 47 | absolute_path = os.path.split(absolute_path)[0] | 47 | if not path.startswith("\\\\?\\"): |
1413 | 48 | return True | 48 | path = "\\\\?\\" + path |
1414 | 49 | 49 | if path in self.root_cache: | |
1415 | 50 | def get_metadata_dir(path): | 50 | return self.root_cache[path] |
1416 | 51 | # we need to find the metadata | 51 | |
1417 | 52 | absolute_path = os.path.abspath(path) | 52 | while True: |
1418 | 53 | while True: | 53 | metadir = os.path.join(path, METADATA_DIR_NAME) |
1419 | 54 | metadir = os.path.join(absolute_path, METADATA_DIR_NAME) | 54 | if os.path.exists(metadir): |
1420 | 55 | if os.path.exists(metadir): | 55 | self.root_cache[path] = True |
1421 | 56 | return metadir | 56 | return self.root_cache[path] |
1422 | 57 | if absolute_path == "C:\\": | 57 | if path == "\\\\?\\C:\\": |
1423 | 58 | None | 58 | self.root_cache[path] = False |
1424 | 59 | absolute_path = os.path.split(absolute_path)[0] | 59 | return self.root_cache[path] |
1425 | 60 | return None | 60 | path = os.path.split(path)[0] |
1385 | 61 | |||
1386 | 62 | def file_was_modified(path): | ||
1387 | 63 | absolute_path = os.path.abspath(path) | ||
1388 | 64 | metadir = get_metadata_dir(path) | ||
1389 | 65 | modified_files = open(os.path.join(metadir, "modified.data"), "rb") | ||
1390 | 66 | modified_data = modified_files.read() | ||
1391 | 67 | index = modified_data.find(absolute_path) | ||
1392 | 68 | return index >= 0 | ||
1426 | 69 | 61 | ||
1452 | 70 | class UbuntuOneIconOverlay: | 62 | def get_metadata_dir(self, path): |
1453 | 71 | _reg_clsid_ = '{a9a25b70-d766-11df-937b-0800200c9a66}' | 63 | # we need to find the metadata |
1454 | 72 | _reg_progid_ = 'TJG.PythonPackagesOverlayHandler' | 64 | if not path.startswith("\\\\?\\"): |
1455 | 73 | _reg_desc_ = 'Icon Overlay Handler to indicate Python packages' | 65 | path = "\\\\?\\" + path |
1456 | 74 | _public_methods_ = ['GetOverlayInfo', 'GetPriority', 'IsMemberOf'] | 66 | while True: |
1457 | 75 | _com_interfaces_ = [shell.IID_IShellIconOverlayIdentifier] | 67 | metadir = os.path.join(path, METADATA_DIR_NAME) |
1458 | 76 | 68 | if os.path.exists(metadir): | |
1459 | 77 | def GetOverlayInfo(self): | 69 | return metadir |
1460 | 78 | icon_path = os.path.join(get_icon_root_location(), "ubuntu-logo-32x32.ico") | 70 | if path == "\\\\?\\C:\\": |
1461 | 79 | return (icon_path, 0, shellcon.ISIOI_ICONFILE) | 71 | None |
1462 | 80 | 72 | path = os.path.split(path)[0] | |
1463 | 81 | def GetPriority(self): | 73 | return None |
1464 | 82 | return 50 | 74 | |
1465 | 83 | 75 | def file_was_modified(self, path): | |
1466 | 84 | def IsMemberOf(self, fname, attributes): | 76 | if not path.startswith("\\\\?\\"): |
1467 | 85 | if os.path.exists (os.path.join (fname, METADATA_DIR_NAME)): | 77 | path = "\\\\?\\" + path |
1468 | 86 | return winerror.S_OK | 78 | modified_time = os.path.getmtime(path) |
1469 | 87 | return winerror.E_FAIL | 79 | if path in self.modified_cache and\ |
1470 | 88 | 80 | self.modified_cache[path][1] == modified_time: | |
1471 | 89 | def icon_overlays_are_registered(): | 81 | return self.modified_cache[path][0] |
1472 | 90 | # First open the registry hive | 82 | if self.file_is_in_ubuntuone_root(path): |
1473 | 91 | hive = _winreg.ConnectRegistry(None, _winreg.HKEY_LOCAL_MACHINE) | 83 | if not os.path.isdir(path): |
1474 | 92 | # Then open the registry key where we stored the overlays | 84 | metadata_dir = self.get_metadata_dir(path) |
1475 | 93 | try: | 85 | data = read(metadata_dir).local_tree |
1476 | 94 | key = _winreg.OpenKey(hive, UBUNTU_ONE_ICON_REG_PATH) | 86 | metadata_dir = os.path.split(metadata_dir)[0] |
1477 | 87 | path_copy = path.replace(metadata_dir + "\\","") | ||
1478 | 88 | while True: | ||
1479 | 89 | sep_position = path_copy.find("\\") | ||
1480 | 90 | if sep_position > 0: | ||
1481 | 91 | partial_path = path_copy[:sep_position] | ||
1482 | 92 | else: | ||
1483 | 93 | partial_path = path_copy | ||
1484 | 94 | if partial_path == path_copy: | ||
1485 | 95 | self.modified_cache[path] = [ | ||
1486 | 96 | data == calculate_hash(path), | ||
1487 | 97 | modified_time] | ||
1488 | 98 | return data == calculate_hash(path) | ||
1489 | 99 | if partial_path in data.children: | ||
1490 | 100 | path_copy = path_copy[path_copy.find("\\") + 1:] | ||
1491 | 101 | data = data.children[partial_path] | ||
1492 | 102 | else: | ||
1493 | 103 | self.modified_cache[path] = [ | ||
1494 | 104 | True, | ||
1495 | 105 | modified_time] | ||
1496 | 106 | return True | ||
1497 | 107 | else: | ||
1498 | 108 | is_modified = False | ||
1499 | 109 | for child in os.listdir(path): | ||
1500 | 110 | is_modified = is_modified or\ | ||
1501 | 111 | self.file_was_modified( | ||
1502 | 112 | os.path.join(path, child)) | ||
1503 | 113 | return is_modified | ||
1504 | 95 | return True | 114 | return True |
1506 | 96 | except: | 115 | |
1507 | 116 | def file_was_added(self, path): | ||
1508 | 117 | if not path.startswith("\\\\?\\"): | ||
1509 | 118 | path = "\\\\?\\" + path | ||
1510 | 119 | if self.file_is_in_ubuntuone_root(path): | ||
1511 | 120 | metadata_dir = self.get_metadata_dir(path) | ||
1512 | 121 | data = read(metadata_dir).local_tree | ||
1513 | 122 | metadata_dir = os.path.split(metadata_dir)[0] | ||
1514 | 123 | path = path.replace(metadata_dir + "\\","") | ||
1515 | 124 | while True: | ||
1516 | 125 | sep_position = path.find("\\") | ||
1517 | 126 | if sep_position > 0: | ||
1518 | 127 | partial_path = path[:sep_position] | ||
1519 | 128 | else: | ||
1520 | 129 | partial_path = path | ||
1521 | 130 | if partial_path == path and\ | ||
1522 | 131 | partial_path in data.children: | ||
1523 | 132 | return True | ||
1524 | 133 | if partial_path in data.children: | ||
1525 | 134 | path = path[path.find("\\") + 1:] | ||
1526 | 135 | data = data.children[partial_path] | ||
1527 | 136 | else: | ||
1528 | 137 | return False | ||
1529 | 97 | return False | 138 | return False |
1530 | 98 | |||
1531 | 99 | def register_icon_overlays(): | ||
1532 | 100 | win32com.server.register.UseCommandLine (UbuntuOneIconOverlay) | ||
1533 | 101 | key = win32api.RegCreateKey (win32con.HKEY_LOCAL_MACHINE, UBUNTU_ONE_ICON_REG_PATH) | ||
1534 | 102 | win32api.RegSetValue (key, None, win32con.REG_SZ, UbuntuOneIconOverlay._reg_clsid_) | ||
1535 | 103 | |||
1536 | 104 | \ No newline at end of file | 139 | \ No newline at end of file |
1537 | 140 | |||
1538 | 105 | \ No newline at end of file | 141 | \ No newline at end of file |
1539 | 106 | 142 | ||
1540 | === modified file 'src/sync/u1sync/main.py' | |||
1541 | --- src/u1sync/main.py 2010-11-02 22:22:52 +0000 | |||
1542 | +++ src/sync/u1sync/main.py 2010-11-02 22:22:53 +0000 | |||
1543 | @@ -47,6 +47,7 @@ | |||
1544 | 47 | from u1sync import metadata | 47 | from u1sync import metadata |
1545 | 48 | from u1sync.constants import METADATA_DIR_NAME | 48 | from u1sync.constants import METADATA_DIR_NAME |
1546 | 49 | from u1sync.ubuntuone_optparse import UbuntuOneOptionsParser | 49 | from u1sync.ubuntuone_optparse import UbuntuOneOptionsParser |
1547 | 50 | from u1sync.icons import file_was_added, file_was_modified | ||
1548 | 50 | 51 | ||
1549 | 51 | # pylint: disable-msg=W0212 | 52 | # pylint: disable-msg=W0212 |
1550 | 52 | NODE_TYPE_ENUM = dircontent_pb2._NODETYPE | 53 | NODE_TYPE_ENUM = dircontent_pb2._NODETYPE |
1551 | @@ -209,7 +210,6 @@ | |||
1552 | 209 | status = " [not accepted]" | 210 | status = " [not accepted]" |
1553 | 210 | else: | 211 | else: |
1554 | 211 | status = "" | 212 | status = "" |
1555 | 212 | print "%s %s (from %s) [%s]%s" % (id, name, user, access, status) | ||
1556 | 213 | 213 | ||
1557 | 214 | def do_diff(client, share_spec, directory, quiet, subtree_path, | 214 | def do_diff(client, share_spec, directory, quiet, subtree_path, |
1558 | 215 | ignore_symlinks=True): | 215 | ignore_symlinks=True): |
1559 | @@ -323,6 +323,12 @@ | |||
1560 | 323 | finally: | 323 | finally: |
1561 | 324 | reactor.callWhenRunning(reactor.stop) | 324 | reactor.callWhenRunning(reactor.stop) |
1562 | 325 | 325 | ||
1563 | 326 | # test if the user wants to know f a path was added or modified | ||
1564 | 327 | if options_parser.options.was_added: | ||
1565 | 328 | return file_was_added(options_parser.options.was_added) | ||
1566 | 329 | if options_parser.options.was_modified: | ||
1567 | 330 | return file_was_modified(options_parser.options.was_modified) | ||
1568 | 331 | |||
1569 | 326 | queue = Queue() | 332 | queue = Queue() |
1570 | 327 | reactor.callInThread(capture_exception, queue, run_client) | 333 | reactor.callInThread(capture_exception, queue, run_client) |
1571 | 328 | reactor.run(installSignalHandlers=False) | 334 | reactor.run(installSignalHandlers=False) |
1572 | @@ -333,7 +339,9 @@ | |||
1573 | 333 | def main(argv): | 339 | def main(argv): |
1574 | 334 | """Top-level main function.""" | 340 | """Top-level main function.""" |
1575 | 335 | try: | 341 | try: |
1577 | 336 | do_main(argv, UbuntuOneOptionsParser()) | 342 | result = do_main(argv, UbuntuOneOptionsParser()) |
1578 | 343 | if result is not None: | ||
1579 | 344 | print result | ||
1580 | 337 | except AuthenticationError, e: | 345 | except AuthenticationError, e: |
1581 | 338 | send_error("Authentication failed: %s" % e, e) | 346 | send_error("Authentication failed: %s" % e, e) |
1582 | 339 | print "Authentication failed: %s" % e | 347 | print "Authentication failed: %s" % e |
1583 | 340 | 348 | ||
1584 | === modified file 'src/sync/u1sync/metadata.py' | |||
1585 | --- src/u1sync/metadata.py 2010-10-19 10:35:43 +0000 | |||
1586 | +++ src/sync/u1sync/metadata.py 2010-11-02 22:22:53 +0000 | |||
1587 | @@ -22,7 +22,7 @@ | |||
1588 | 22 | from __future__ import with_statement | 22 | from __future__ import with_statement |
1589 | 23 | 23 | ||
1590 | 24 | import os | 24 | import os |
1592 | 25 | import cPickle as pickle | 25 | import pickle |
1593 | 26 | from errno import ENOENT | 26 | from errno import ENOENT |
1594 | 27 | from contextlib import contextmanager | 27 | from contextlib import contextmanager |
1595 | 28 | from ubuntuone.storageprotocol.dircontent_pb2 import DIRECTORY | 28 | from ubuntuone.storageprotocol.dircontent_pb2 import DIRECTORY |
1596 | @@ -43,7 +43,6 @@ | |||
1597 | 43 | 43 | ||
1598 | 44 | def read(metadata_dir): | 44 | def read(metadata_dir): |
1599 | 45 | """Read metadata for a mirror rooted at directory.""" | 45 | """Read metadata for a mirror rooted at directory.""" |
1600 | 46 | send_notification("Reading", "Reading metadata.", "info") | ||
1601 | 47 | index_file = os.path.join(metadata_dir, "local-index") | 46 | index_file = os.path.join(metadata_dir, "local-index") |
1602 | 48 | share_uuid_file = os.path.join(metadata_dir, "share-uuid") | 47 | share_uuid_file = os.path.join(metadata_dir, "share-uuid") |
1603 | 49 | root_uuid_file = os.path.join(metadata_dir, "root-uuid") | 48 | root_uuid_file = os.path.join(metadata_dir, "root-uuid") |
1604 | 50 | 49 | ||
1605 | === modified file 'src/sync/u1sync/scan.py' | |||
1606 | --- src/u1sync/scan.py 2010-10-19 10:35:43 +0000 | |||
1607 | +++ src/sync/u1sync/scan.py 2010-11-02 22:22:53 +0000 | |||
1608 | @@ -36,13 +36,10 @@ | |||
1609 | 36 | 36 | ||
1610 | 37 | def scan_directory(path, display_path="", quiet=False): | 37 | def scan_directory(path, display_path="", quiet=False): |
1611 | 38 | """Scans a local directory and builds an in-memory tree from it.""" | 38 | """Scans a local directory and builds an in-memory tree from it.""" |
1612 | 39 | if display_path != "" and not quiet: | ||
1613 | 40 | print display_path | ||
1614 | 41 | 39 | ||
1615 | 42 | link_target = None | 40 | link_target = None |
1616 | 43 | child_names = None | 41 | child_names = None |
1617 | 44 | try: | 42 | try: |
1618 | 45 | print "Path is " + str(path) | ||
1619 | 46 | if sys.platform == "win32": | 43 | if sys.platform == "win32": |
1620 | 47 | if path.endswith(".lnk") or path.endswith(".url"): | 44 | if path.endswith(".lnk") or path.endswith(".url"): |
1621 | 48 | import win32com.client | 45 | import win32com.client |
1622 | @@ -50,7 +47,6 @@ | |||
1623 | 50 | pythoncom.CoInitialize() | 47 | pythoncom.CoInitialize() |
1624 | 51 | shell = win32com.client.Dispatch("WScript.Shell") | 48 | shell = win32com.client.Dispatch("WScript.Shell") |
1625 | 52 | shortcut = shell.CreateShortCut(path) | 49 | shortcut = shell.CreateShortCut(path) |
1626 | 53 | print(shortcut.Targetpath) | ||
1627 | 54 | link_target = shortcut.Targetpath | 50 | link_target = shortcut.Targetpath |
1628 | 55 | else: | 51 | else: |
1629 | 56 | link_target = None | 52 | link_target = None |
1630 | 57 | 53 | ||
1631 | === modified file 'src/sync/u1sync/ubuntuone_optparse.py' | |||
1632 | --- src/u1sync/ubuntuone_optparse.py 2010-09-27 17:33:52 +0000 | |||
1633 | +++ src/sync/u1sync/ubuntuone_optparse.py 2010-11-02 22:22:53 +0000 | |||
1634 | @@ -102,6 +102,12 @@ | |||
1635 | 102 | self.add_option("--subtree", dest="subtree", metavar="PATH", | 102 | self.add_option("--subtree", dest="subtree", metavar="PATH", |
1636 | 103 | default=None, | 103 | default=None, |
1637 | 104 | help="Mirror a subset of the share or volume") | 104 | help="Mirror a subset of the share or volume") |
1638 | 105 | self.add_option("--was-added", dest="was_added", metavar="PATH", | ||
1639 | 106 | default=None, | ||
1640 | 107 | help="Returns if the metadata know about the path.") | ||
1641 | 108 | self.add_option("--was-modified", dest="was_modified", metavar="PATH", | ||
1642 | 109 | default=None, | ||
1643 | 110 | help="Returns if the file has been locally modified") | ||
1644 | 105 | 111 | ||
1645 | 106 | def get_options(self, arguments): | 112 | def get_options(self, arguments): |
1646 | 107 | """Parses the arguments to from the command line.""" | 113 | """Parses the arguments to from the command line.""" |
1647 | @@ -128,7 +134,6 @@ | |||
1648 | 128 | 134 | ||
1649 | 129 | def _get_directory(self): | 135 | def _get_directory(self): |
1650 | 130 | """Gets the directory to be used according to the paramenters.""" | 136 | """Gets the directory to be used according to the paramenters.""" |
1651 | 131 | print self._args | ||
1652 | 132 | if self.options.mode == "sync" or self.options.mode == "init" or \ | 137 | if self.options.mode == "sync" or self.options.mode == "init" or \ |
1653 | 133 | self.options.mode == "diff": | 138 | self.options.mode == "diff": |
1654 | 134 | if len(self._args) > 2: | 139 | if len(self._args) > 2: |
1655 | @@ -183,6 +188,8 @@ | |||
1656 | 183 | 188 | ||
1657 | 184 | def _validate_oauth(self): | 189 | def _validate_oauth(self): |
1658 | 185 | """Validates that the oatuh was passed.""" | 190 | """Validates that the oatuh was passed.""" |
1659 | 191 | if self.options.was_modified or self.options.was_added: | ||
1660 | 192 | return | ||
1661 | 186 | if self.options.oauth is None: | 193 | if self.options.oauth is None: |
1662 | 187 | self.error("--oauth is currently compulsery.") | 194 | self.error("--oauth is currently compulsery.") |
1663 | 188 | else: | 195 | else: |