Commit Graph

1343 Commits

Author SHA1 Message Date
Fabio Erculiani 6c5626f638 Release Entropy 278 2014-04-08 11:23:56 +02:00
Fabio Erculiani 1f064736a3 [entropy.server] do not warn about missing dependencies
The code is slow and doesn't give any useful and reliable information
to the user.
2014-04-08 09:37:29 +02:00
Fabio Erculiani 62e1b9e63b Release Entropy 277 2014-04-04 11:35:46 +02:00
Fabio Erculiani 06ba8833df [entropy.qa] catch FileNotFound on read_elf_real_dynamic_libraries 2014-04-03 12:58:28 +02:00
Fabio Erculiani de1baee2cc [entropy.tools] read_elf_real_dynamic_libraries: do not block if stdout buffer is full 2014-04-03 12:58:08 +02:00
Fabio Erculiani 1ead98fb6e [entropy.tools] open os.devnull and pass a file handle to Popen() 2014-04-03 12:45:41 +02:00
Fabio Erculiani 97a5b45e27 [entropy.tools] open stdout and redirect it to os.devnull 2014-04-03 12:42:47 +02:00
Fabio Erculiani f2ddad2e0c [entropy.tools] do not read stdout at all 2014-04-03 12:40:15 +02:00
Fabio Erculiani bb47a20fc9 [entropy.tools] avoid blocking on stdout when stderr buffer was full 2014-04-03 12:37:13 +02:00
Fabio Erculiani 85c262ff90 [entropy.tools] read_elf_broken_symbols: do not block when stdio buffers are full 2014-04-03 12:20:09 +02:00
Fabio Erculiani b8ee50d514 [entropy.client.package] install: correctly deal with mkdir, makedirs errors 2014-03-24 12:19:15 +01:00
Fabio Erculiani 6c10619d21 Release Entropy 276 2014-03-22 08:13:05 +01:00
Fabio Erculiani 09505b7ead [entropy.qa] do not account for broken executables if there are no missing sonames 2014-03-18 15:27:46 +01:00
Fabio Erculiani 5c246d10ba [entropy.qa] filter out missing sonames if they belong to system packages
When warning user for potentially broken ELF objects, it is better
to filter out sonames pointing to system packages.
2014-03-18 15:21:29 +01:00
Fabio Erculiani d0fce0b375 [entropy.qa] move is_system_pkg to instance method 2014-03-18 15:20:26 +01:00
Fabio Erculiani 8e64909155 Release Entropy 275 2014-03-16 17:04:10 +01:00
Fabio Erculiani b8d3b84f4c [entropy.qa] catch FileNotFound when calling read_elf_broken_symbols
This fixes bug #4632
2014-03-15 09:42:00 +01:00
Fabio Erculiani 200d0ce137 Release Entropy 274 2014-03-05 12:44:44 +01:00
Fabio Erculiani 704b9a161a [entropy.server.interfaces.mirrors] fix _calculate_remote_package_files wrt separate package dirs 2014-03-05 12:43:16 +01:00
Fabio Erculiani 285b5558af [entropy.server.interfaces.mirrors] speed up _calculate_local_{upload,package}_files 2014-03-05 11:20:50 +01:00
Fabio Erculiani 880aba81cb [entropy.server.interfaces.mirrors] simplify local packages calculation methods 2014-03-05 11:18:26 +01:00
Fabio Erculiani 846e9b16d8 Release Entropy 273 2014-02-26 16:02:41 +01:00
Fabio Erculiani 9c505b4f58 [entropy.server] correctly generate extra_download URLs 2014-02-26 16:02:13 +01:00
Fabio Erculiani 2e82d22768 Release Entropy 272 2014-02-21 11:08:44 +01:00
Fabio Erculiani 82f2d2e1de Release Entropy 271 2014-02-21 11:08:27 +01:00
Fabio Erculiani 855afdff1d [entropy.client.package] Do not alter repository package file directory permissions
It was observed that the new locking mechanism introduced a problem
with the management of repository package files (.tbz2 files passed
to "equo install", for instance). Try to avoid that by symlinking
the package file to a safe location and using this one as pkgpath.

This fixes bug 4604.
2014-02-16 13:20:50 +01:00
Fabio Erculiani 4c8d1801ea [entropy.tools] dump_entropy_metadata: follow symlinks when determining file size
The package file passed as input might be pointing to a symlink.
If we use lstat().st_size we will get the symlink file size back
rather than the source file size, which is of course unwanted.

This is part of the fixes for bug 4604.
2014-02-16 13:18:15 +01:00
Fabio Erculiani 1f6bd34749 [entropy] prefix package download URLs with the category directory
This makes possible to avoid directory hot spots on repository mirrors.
This commit requires some mileage and real-world testing, but it
seems to be running good on a relatively small repository.
No backward compatibility issues have been reported.
2014-02-15 19:10:16 +01:00
Fabio Erculiani 9724a16689 Release Entropy 270 2014-02-14 16:28:36 +01:00
Fabio Erculiani d759bdd74b [entropy.client] move LoadersMixin back into the Client class 2014-02-14 16:13:34 +01:00
Fabio Erculiani 03ef3991bd [entropy.client] refactor NoticeBoard Entropy Client API 2014-02-14 13:10:16 +01:00
Fabio Erculiani 10d8c6b6d5 [entropy.tools] generate_entropy_delta: make sure not to leak any fds 2014-02-14 11:31:11 +01:00
Fabio Erculiani f44eb72b81 [entropy.tools] pass prefix= to every const_mkstemp call 2014-02-14 11:18:03 +01:00
Fabio Erculiani 92146a8c17 [entropy.tools] apply_entropy_delta: avoid potential fd leaks 2014-02-13 16:12:35 +01:00
Fabio Erculiani 4a9980d37c [entropy.qa] rename ErrorReportInterface to ErrorReport, it's cleaner 2014-01-30 14:56:37 +01:00
Fabio Erculiani 715e628c84 [entropy.client] drop CacheMixin class 2014-01-30 14:56:37 +01:00
Fabio Erculiani b4196026d8 [entropy.client] drop _get_available_packages_hash() 2014-01-30 14:56:37 +01:00
Fabio Erculiani d0cf15ffc6 [entropy.client] add missing imports 2014-01-30 14:56:37 +01:00
Fabio Erculiani cc3d69c8b2 [entropy.client] rename _repositories_hash() to repositories_checksum() 2014-01-30 14:56:37 +01:00
Fabio Erculiani 2b6a4e8d9a [entropy.client.cache] improve _repositories_hash() robustness against collisions 2014-01-30 14:56:37 +01:00
Fabio Erculiani f6591e1ade [entropy.client.cache] drop _selective_repositories_hash() 2014-01-30 14:56:37 +01:00
Fabio Erculiani f5eb6c1803 [entropy.client.cache] drop _all_repositories_hash, duplicate of _repositories_hash() 2014-01-30 14:56:37 +01:00
Fabio Erculiani 3c3a376a3b [entropy.client] rename _filter_available_repositories() to filter_repositories() 2014-01-30 14:56:37 +01:00
Fabio Erculiani a83935d33c [entropy.client.client] move clear_cache() to Client 2014-01-30 14:56:37 +01:00
Fabio Erculiani 34a03796cb Release Entropy 269 2014-01-28 14:39:33 +01:00
Fabio Erculiani 1841234eb4 Release Entropy 268 2014-01-28 14:17:45 +01:00
Fabio Erculiani 4988c54502 Release Entropy 267 2014-01-28 11:18:50 +01:00
Fabio Erculiani 49b210e6b0 Release Entropy 266 2014-01-24 14:04:11 +01:00
Fabio Erculiani 96b3b7115a [entropy.locks] call const_setup_directory only, it's enough
Also deal with possible directory creation errors. We can safely
ignore them, since we would fail right after anyway.
This will allow the code to deal with the case where the directory
exists but we don't have enough perms to mkdir it.
2014-01-16 07:22:26 +01:00
Fabio Erculiani 5423663751 [entropy.const] fix default makedirs permissions, const_setup_file does it anyway 2014-01-16 07:21:57 +01:00