Commit Graph

4386 Commits

Author SHA1 Message Date
Fabio Erculiani 898eec10ac [entropy.client.services.ugc] make set_gzip_compression more fault tolerant in regards to socket errors 2010-11-12 06:39:33 +01:00
Fabio Erculiani 43f573cd9a [entropy.services.repository] fix MasterSlaveLock usage in EAPI3 service library class 2010-11-12 06:23:20 +01:00
Fabio Erculiani b96020c108 Tagging Entropy version 0.99.50.15 2010-11-11 19:03:36 +01:00
Fabio Erculiani 50de1a7378 [entropy.services.repository] use MasterSlaveLock in EAPI3 repository daemon library code, make code stronger, avoid to depend on packages.db.download.lock 2010-11-11 19:00:06 +01:00
Fabio Erculiani 3cc05e408c [entropy.misc] add MasterSlaveLock class
Useful for handling a certain kind of mutex, with some primitive
priority concept. There is a Master and several Slaves, Master
can block slaves from being able to acquire the lock, and take
the control itself once all slaves are done. Slaves share the same
lock, and can acquire every time they want, as many times as they want.
If you see the mutex object like a microphone, and more people talking
at a conference sharing it, where there's a boss that can hold his/her
employees from talking, you got it.
2010-11-09 19:20:30 +01:00
Fabio Erculiani 4b67cf4f53 [entropy.services.ugc] fix error output, undefined reference 2010-11-07 19:38:14 +01:00
Fabio Erculiani 9c717c50d0 [entropy.server] add EAPI3 signal file upload on every repository update.
This file will be used by EAPI3 service daemon to trigger local repository
cache data and repository data updates and serve new repository package
information to clients.
2010-11-07 16:50:19 +01:00
Fabio Erculiani 7d1ea41e1a [entropy.server] make package sets update more verbose (warning developer for removed package sets) 2010-11-07 15:26:17 +01:00
Fabio Erculiani 1e18eb4f34 Tagging Entropy version 0.99.50.14 2010-11-07 13:05:30 +01:00
Fabio Erculiani f3df3c0422 [entropy.db] EntropyRepository.listPackageIdsInCategory: fix undefined reference 2010-11-07 13:04:46 +01:00
Fabio Erculiani be8d4f4079 Tagging Entropy version 0.99.50.13 2010-11-06 21:00:23 +01:00
Fabio Erculiani 0978ef9813 [entropy.client.interfaces.dep] filter out invalid package matches when calling _get_required_packages() and _generate_dependency_tree() 2010-11-06 20:56:29 +01:00
Fabio Erculiani 614bf6d436 [tests] add small sleep() to mitigate unittest multithreading bugs 2010-11-06 19:57:53 +01:00
Fabio Erculiani 13edb1c90a [entropy.spm] re-add eclasses metadata, keep backward compatibility 2010-11-06 19:57:07 +01:00
Fabio Erculiani e9dff807d2 [entropy.client.services.ugc] do not let socket exceptions going through, but rather return error on execution 2010-11-06 19:31:11 +01:00
Fabio Erculiani 32e6f4f1ab [entropy.db] always discard live cache when closing repository, see bug #1638 2010-11-06 18:37:32 +01:00
Fabio Erculiani 99b7d2b454 [entropy.db.skel] add back 'eclasses' metadata for backward compatibility 2010-11-06 17:22:42 +01:00
Fabio Erculiani 811e6fec95 [entropy.server] implement packages.server.dep_rewrite conflicts add support 2010-11-06 15:12:09 +01:00
Fabio Erculiani ac784b394c [entropy.security] handle race condition in Security.clear() (os.makedirs()) 2010-11-06 14:54:48 +01:00
Fabio Erculiani 53a27e0fd8 Tagging Entropy version 0.99.50.12 2010-11-03 21:16:52 +01:00
Fabio Erculiani 37dac7e029 [entropy.db] EntropyRepository.checksum(): when returning md5 hex digest, make sure to eat international food
hash() is platform, interpreter dependent.
2010-11-03 21:05:23 +01:00
Fabio Erculiani 6a21093ba4 [entropy.services.ugc.interfaces] catch select.error exception (interrupted system call, IO Error 4) 2010-11-01 22:27:19 +01:00
Fabio Erculiani 08c2979373 [entropy.client.interfaces.dep] when conflicting dependencies are pulled in, in the dep graph, bail out to avoid inconsistencies 2010-11-01 12:56:45 +01:00
Fabio Erculiani 722cec9bb7 Tagging Entropy version 0.99.50.11 2010-10-28 11:28:47 +02:00
Fabio Erculiani 2a131ad23b Revert "[entropy.client.interfaces.dep] add logic that automatically filters out packages already pulled in, in the same slot, under certain corner case circumstances"
This reverts commit 97f481f3d5.
2010-10-28 11:27:24 +02:00
Fabio Erculiani fcbe6bde1d Revert "[entropy.client.interfaces.dep] filter out packages in the same scope"
This reverts commit 73e9778f2f.
2010-10-28 11:27:11 +02:00
Fabio Erculiani be98fa373b Tagging Entropy version 0.99.50.10 2010-10-27 21:23:29 +02:00
Fabio Erculiani 5183d94fcf [entropy.client.interfaces.trigger] always execute environment update before any other trigger 2010-10-27 21:18:41 +02:00
Fabio Erculiani 09cb532af5 [entropy.server] add support for dependency add (and document dep. remove) in packages.server.dep_rewrite configuration file 2010-10-23 18:46:44 +02:00
Fabio Erculiani 1fa0c1462c Tagging Entropy version 0.99.50.9 2010-10-23 11:35:45 +02:00
Fabio Erculiani 5efa48bb3e [entropy.db] EntropyRepository.importRepository: only rename when sqlite3 call is successful 2010-10-23 11:34:49 +02:00
Fabio Erculiani e224b4caee [entropy.const] reduce locale error to warning for now. 2010-10-22 11:20:47 +02:00
Fabio Erculiani 3b8e465f57 Tagging Entropy version 0.99.50.8 2010-10-20 11:10:49 +02:00
Fabio Erculiani ddd783155f Tagging Entropy version 0.99.50.7 2010-10-20 11:05:39 +02:00
Fabio Erculiani c58e1a79c9 [entropy.client.interfaces.package] when destination install directory cannot be removed, raise a warning instead of failing 2010-10-18 21:40:02 +02:00
Fabio Erculiani b25b82c980 [entropy.db] EntropyRepository.importRepository: improve code, remove shell usage 2010-10-18 21:26:30 +02:00
Fabio Erculiani 683023e79c [entropy.client.interfaces.trigger] better handle Source Package Manager availability 2010-10-18 19:33:22 +02:00
Fabio Erculiani adc97c9438 [entropy.const] trivial change, no need to cast to list() 2010-10-17 22:01:10 +02:00
Fabio Erculiani 959cc8185f [entropy.services.ugc.interfaces] catch socket.error exception and give up (handle the exception) 2010-10-17 19:41:37 +02:00
Fabio Erculiani 73e9778f2f [entropy.client.interfaces.dep] filter out packages in the same scope
In particular, when package dependency list is broken and contains
references to colliding slots. This is generally caught at SPM time
but there are some corner cases (cough, entropy tags, cough) where
SPM cannot do anything.
2010-10-17 17:20:44 +02:00
Fabio Erculiani 97f481f3d5 [entropy.client.interfaces.dep] add logic that automatically filters out packages already pulled in, in the same slot, under certain corner case circumstances 2010-10-17 15:52:46 +02:00
Fabio Erculiani 34c8672638 [entropy.db] fix isjustname() usage in EntropyRepository.atomMatch(), and fix isjustname() itself 2010-10-17 15:00:10 +02:00
Fabio Erculiani ad5b770cf3 [entropy.db] isjustname: rework logic, make "389-admin" return True 2010-10-17 14:37:02 +02:00
Fabio Erculiani 6b8aadcc48 Tagging Entropy version 0.99.50.6 2010-10-10 18:00:15 +02:00
Fabio Erculiani 2ee7096434 [entropy.const] const_kill_threads: do not try to kill own thread, it won't work 2010-10-10 17:57:05 +02:00
Fabio Erculiani 4300322176 [entropy.client] rename Client.clientLog into Client.logger 2010-10-09 23:23:28 +02:00
Fabio Erculiani 7c2d053366 [entropy.core,entropy.server] implement support for per-repository packages mirrors support. 2010-10-09 01:17:23 +02:00
Fabio Erculiani 01dc775a90 Tagging Entropy version 0.99.50.5 2010-10-08 20:47:43 +02:00
Fabio Erculiani 0b72e1836c [entropy.db] do not use _connection().commit() directly 2010-10-08 20:47:21 +02:00
Fabio Erculiani 8d2a7e8a60 Tagging Entropy version 0.99.50.4 2010-10-08 20:44:46 +02:00