Commit Graph

938 Commits

Author SHA1 Message Date
Fabio Erculiani
51e7e03c00 [entropy.client.interfaces.package] call fetch_abort_function early
This makes sure that the interruption will happen almost immediately
2013-11-03 15:39:11 +01:00
Fabio Erculiani
c2feb6354d [entropy.fetchers] do not leak a fd if the abort function raises an exception 2013-11-03 15:38:45 +01:00
Fabio Erculiani
acc96f1ada [entropy.transceivers] 1kB is 1000 bytes 2013-11-03 14:49:22 +01:00
Fabio Erculiani
1b120b53ff [entropy.fetchers] 1kB is 1000 bytes 2013-11-03 14:47:36 +01:00
Fabio Erculiani
c752b7775a [entropy.tools] 1kB is 1000 bytes 2013-11-03 14:47:10 +01:00
Fabio Erculiani
880ec0588a [entropy.fetchers] MultipleUrlFetcher: move stats calculation to separate method
_compute_progress_stats can now be used by subclasses to correctly compute
the aggregated statistics without code duplication
2013-11-03 14:38:50 +01:00
Fabio Erculiani
3fe20f1bd9 [entropy.fetchers] make url_path_list and transfer_data protected 2013-11-03 14:16:09 +01:00
Fabio Erculiani
23e18a9dfe [entropy.fetchers] do not calculate any stats until all threads have computed theirs 2013-11-03 13:52:35 +01:00
Fabio Erculiani
0a7251bcbd [entropy.fetchers] remove unused variable update_step 2013-11-03 13:37:47 +01:00
Fabio Erculiani
246863357b [entropy.fetchers] MultipleUrlFetcher: protect __progress_data with a mutex
Stale information may be used to perform progress calculation.
The mutex ensures that stale data is not used to compute it.
2013-11-03 13:27:48 +01:00
Fabio Erculiani
d91a8d7c9e [kswitch] fix _guess_kernel_package_file subdirs generation 2013-11-03 12:56:20 +01:00
Fabio Erculiani
91f6c24d9d [kswitch] add new method KernelSwitcher.running_kernel_package()
This public method can be used to determine the currently running
kernel package, if it comes from Entropy repositories.
2013-11-02 14:37:33 +01:00
Fabio Erculiani
3d2eb09213 Release Entropy 224 2013-10-29 23:31:40 +01:00
Fabio Erculiani
28cb398069 Release Entropy 223 2013-10-28 16:51:52 +01:00
Fabio Erculiani
d7b9cd30b7 Release Entropy 222 2013-10-28 12:52:33 +01:00
Fabio Erculiani
93bc50c539 Release Entropy 221 2013-10-28 12:28:04 +01:00
Fabio Erculiani
c95955c1ae Release Entropy 220 2013-10-27 18:35:00 +01:00
Fabio Erculiani
85a653ba65 Release Entropy 219 2013-10-17 16:36:52 +02:00
Fabio Erculiani
ed6224576d [entropy.client.interfaces.dep] move calculate_updates() back to single threaded implem.
As usual, Python and multithreading is a funny joke in terms of
performance.
2013-10-17 16:35:52 +02:00
Fabio Erculiani
d842b47396 Release Entropy 218 2013-10-14 12:37:08 +02:00
Fabio Erculiani
64629bde8a [entropy.qa] add missing import 2013-10-14 12:25:18 +02:00
Fabio Erculiani
0ae6d16483 [entropy.cache] do not use hash() in MtimePingus, but SHA1 2013-10-13 11:51:46 +02:00
Fabio Erculiani
77db0cf3cd [entropy.client.interfaces.dep] add experimental multithreading support to calculate_updates() 2013-10-12 17:21:02 +02:00
Fabio Erculiani
8aa8f1b3e4 [entropy.transceivers] remove unneeded .flush() calls 2013-10-10 10:22:12 +02:00
Fabio Erculiani
78deb16b82 [entropy.spm] PortagePlugin: remove unneeded .flush() calls 2013-10-10 10:21:57 +02:00
Fabio Erculiani
31b35cd520 [entropy.spm] PortagePlugin.xpak: remove unneeded .flush() calls 2013-10-10 10:21:50 +02:00
Fabio Erculiani
9c38a070d6 [entropy.server.interfaces.main] remove unneeded .flush() calls 2013-10-10 10:20:44 +02:00
Fabio Erculiani
31528cd850 [entropy.server.interfaces.db] remove unneeded .flush() calls 2013-10-10 10:20:23 +02:00
Fabio Erculiani
deba77f44e [entropy.client.interfaces.package] remove unneeded .flush() calls 2013-10-10 10:20:03 +02:00
Fabio Erculiani
913ad559e7 [entropy.client.interfaces.client] remove unneeded .flush() calls 2013-10-10 10:19:44 +02:00
Fabio Erculiani
61307b21fa [entropy.core] remove unneeded .flush() calls 2013-10-10 10:19:27 +02:00
Fabio Erculiani
e32b94dcce [entropy.const] remove unneeded .flush() calls 2013-10-10 10:19:16 +02:00
Fabio Erculiani
670c9ae992 [entropy.security] remove unneeded .flush() calls 2013-10-10 10:19:04 +02:00
Fabio Erculiani
b317ffa0f3 [entropy.qa] remove unneeded .flush() calls 2013-10-10 10:18:53 +02:00
Fabio Erculiani
c49924504a [entropy.tools] remove unneeded .flush() calls 2013-10-10 10:18:31 +02:00
Fabio Erculiani
5fead492a1 Release Entropy 217 2013-10-09 21:23:14 +02:00
Fabio Erculiani
978eccc78e [entropy.spm] _add_kernel_dependency_to_pkg, rewrite to use /etc/kernels data
Trying to figure out the kernel owning /lib/modules/vermagic doesn't work
in all cases. Packages like sys-kernel/spl may be returned as valid
kernel packages. Now that /etc/kernels/vermagic consolidated, it's time
to use it.
2013-10-01 13:17:38 +02:00
Fabio Erculiani
7bffbc3403 [entropy.spm] PortagePlugin: fix const_dir_readable() if condition 2013-09-29 10:45:17 +02:00
Fabio Erculiani
321ff3c0c8 [entropy.tools] drop compress_tar_bz2, no longer needed 2013-09-18 20:56:19 +02:00
Fabio Erculiani
060c12193d [entropy.tools] drop spawn_function(), no longer needed 2013-09-18 20:50:45 +02:00
Fabio Erculiani
e3542b23e4 [entropy.misc] fix variable referenced before assignment 2013-09-18 10:53:49 +02:00
Fabio Erculiani
fb810f290e [entropy.client.interfaces.methods] fix undefined reference 2013-09-18 10:52:41 +02:00
Fabio Erculiani
fe83020ddd [kswitch] drop access() usage 2013-09-17 18:20:56 +02:00
Fabio Erculiani
29a7854d93 [entropy.client.misc] drop access() usage 2013-09-17 18:19:56 +02:00
Fabio Erculiani
933e792a56 [entropy.client.services.interfaces] drop access() usage 2013-09-17 18:17:58 +02:00
Fabio Erculiani
c9b3195b68 [entropy.client.interfaces.repository] drop access() usage 2013-09-17 18:17:49 +02:00
Fabio Erculiani
0993913717 [entropy.client.interfaces.sets] drop access() usage 2013-09-17 18:16:12 +02:00
Fabio Erculiani
b6c1668c41 [entropy.client.interfaces.dep] drop access() usage 2013-09-17 18:09:38 +02:00
Fabio Erculiani
9297be600d [entropy.client.interfaces.noticeboard] drop access() usage 2013-09-17 18:08:16 +02:00
Fabio Erculiani
723ccaa90e [entropy.services.client] drop access() usage 2013-09-17 18:06:26 +02:00