Commit Graph

1400 Commits

Author SHA1 Message Date
lxnay
050756266b Entropy/SocketHostInterface:
- relax chown rules for SSL key and certs


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2201 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 12:19:11 +00:00
lxnay
d3a957e02a Entropy/repository daemon template:
- check client IP address too
Entropy/phpbb3 Auth Interface:
- add _is_ip_banned() method


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2200 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 12:01:14 +00:00
lxnay
5a84be0fd0 Entropy/DistributionAuthInterface:
- add FAKE_USERNAME, general purpose username
- add get_user_id()
Entropy/phpbb3 Auth Interface:
- reimplement FAKE_USERNAME and get_user_id()
Entropy/SocketHostInterface:
- remove session from authenticator arguments
- create a new authenticator function called set_session() to provide session id information to the authentication module


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2198 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 11:38:29 +00:00
lxnay
d93ab1087c Entropy/phpbb3 Auth Interface:
- fix disconnect()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2197 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 11:09:05 +00:00
lxnay
6aef223e23 Entropy/SocketHostInterface:
- improve Authenticator


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2196 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 11:06:58 +00:00
lxnay
5ced75b8a4 Entropy/SocketHostInterface:
- fix builtin commands instantiation


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2195 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 10:32:00 +00:00
lxnay
0a23b6a913 Entropy/Repository Service:
- add kwargs support


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2194 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 10:29:23 +00:00
lxnay
67dc026b14 Entropy/SocketHostInterface:
- fix docmd_logout() built-in command


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2192 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 10:20:16 +00:00
lxnay
23e0e179a5 Entropy/phpbb3 Auth Interface:
- check if a reconnection is needed when calling check_connection()
Entropy/SocketHostInterface:
- remove Authenticator instance, the authenticator will be instantiated within every thread


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2191 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 09:34:46 +00:00
lxnay
fc989eab38 Entropy/PortageInterface:
- update USE flag handling to new schemas
Entropy/SocketHostInterface:
- update killall() to work better when killing threads
Entropy/Repository Interface:
- update killall() here too


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2190 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 07:49:59 +00:00
lxnay
ab8537c65a Entropy/SocketHostInterface:
- change default SSL port to 1027
- add killall() function to close some threads correctly
Entropy/entropy-repository-daemon example:
- update it to support SSL and non-SSL connections at the same time


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2189 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-29 17:40:38 +00:00
lxnay
e0f274a0bd Entropy/phpbb3 Auth Interface:
- implementation of the base class completed

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2188 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-29 17:08:37 +00:00
lxnay
650effde4a Entropy/phpbb3 Auth Interface:
- implement user ban check


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2187 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-29 10:10:31 +00:00
lxnay
458f194fce Entropy/phpbb3 Auth Interface:
- improve login(), supporting inactive, banned users
- complete some other functions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2186 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-28 18:09:47 +00:00
lxnay
0ff9c1fb5a Entropy/phpbb3 Auth Interface:
- login() and logout() completed
- started to implement other functions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2185 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-28 11:03:20 +00:00
lxnay
91f924b422 Entropy:
- updated TODO
- move enzyme to electron
- move enzymelib to managerTools
Entropy/exceptionTools:
- add some new exceptions
Entropy/Authenticators:
- started to implement phpbb3 authenticator to be used with EAPI=3 Services


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2184 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-27 21:14:31 +00:00
lxnay
4c431f7d2c Entropy/Repository Manager:
- more work on the urwid-based application


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2182 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-27 11:58:58 +00:00
lxnay
d21d8f6db0 Entropy/RepositoryManager:
- first bunch of code implemented, using urwid library
- application name = Enzyme
Entropy/entropyTools:
- improved parallelTask(), make it use *args and **kwargs
- fixed code accordingly
- some new functions
Entropy/outputTools:
- make shell output function faster by reducing call time


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2179 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-24 13:22:14 +00:00
lxnay
be13b9ba8b Entropy/EquoInterface:
- make configuration files protection faster and fix a bug which caused to protect files belonging to unprotected directories (bad use of .startswith())


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2176 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-21 18:17:03 +00:00
lxnay
253e03cedf Entropy/LogFile:
- handle UnicodeEncodeError in default_handler()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2169 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-20 22:39:13 +00:00
lxnay
cd7a8452ac Entropy:
- updated TODO
Entropy/ServerInterface:
- move EntropyDatabaseInterface.doServerDatabaseSyncLock() to ServerInterface to allow handling db instances correctly


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2167 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-20 13:24:13 +00:00
lxnay
c60db16af9 Entropy:
- do not overwrite old pid when checking


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2165 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-20 08:57:43 +00:00
lxnay
be57888cd5 Entropy:
- fix PID handling, especially when calling const_setupEntropyPid() directly


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2163 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-20 08:46:55 +00:00
lxnay
bc4e970b71 Entropy/Repositories Management:
- add a function to allow copying packages from a repository to another
- export it to reagent and equo


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2161 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-19 18:59:42 +00:00
lxnay
ccaef70199 Entropy:
- move proxy initialization to entropyTools.add_proxy_opener()
- fix writeParameterToFile() when disabling items
EquoInterface:
- update proxy setup using entropyTools.add_proxy_opener()
- add support for _basic_ proxy username and password authentication
Entropy/Spritz:
- export proxy username and password settings


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2160 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-19 18:35:28 +00:00
lxnay
9e750c86f9 Entropy/FtpInterface:
- raise FtpError on setCWD()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2158 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-18 12:38:15 +00:00
lxnay
52afbfb38a Entropy/Database Interface:
- fix a possible issue with atomMatch()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2157 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-18 12:31:37 +00:00
lxnay
32012d192f Entropy:
- update TODO
Entropy/Spritz:
- fix attribute call


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2155 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-16 19:13:56 +00:00
lxnay
623bc34bc6 Entropy/EAPI3 Repository Services:
- implement database setup lock file, to make client wait a little bit before giving up and switching to EAPI2


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2152 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-16 11:11:56 +00:00
lxnay
394e9b2e7f Entropy/EquoInterface:
- avoid flooding in calculate_available_packages()

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2147 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-15 18:15:51 +00:00
lxnay
ccd400aa59 Entropy/Database Interface:
- fix a bug in atomMatch returning wrong data when no match is found
- make possible to bypass cache on atomMatch()
Entropy/EquoInterface:
- make atomMatch() TypeError safe on querying db's atomMatch


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2142 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-13 20:34:53 +00:00
lxnay
91319d6930 Entropy/SocketHostInterface:
- trying to make python to not leak memory

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2141 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-13 20:14:59 +00:00
lxnay
40427fec0c Entropy/FtpInterface:
- raise new exception FtpError on login issues
Entropy/exceptionTools:
- add FtpError exception class
Entropy/SocketHostInterface:
- spawn every command call in a different process to avoid Python to eat memory like cookies (and get fat like a pig)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2140 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-13 19:48:55 +00:00
lxnay
583e8db155 tagging entropy 0.15.22
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2139 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-13 15:46:18 +00:00
lxnay
b54cd32a3a Entropy/Socket Interface:
- add garbage collection thread which calls gc.collect() every hour


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2137 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-12 18:53:00 +00:00
lxnay
87d842e0bf Entropy/dumpTools:
- fix unserialize_string()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2136 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-12 18:31:25 +00:00
lxnay
d111171ad5 Entropy/Socket Interface:
- add support to zlib compression (old gzip method kept for backward compatibility)
Entropy/Repository Client Interface:
- move to zlib, which is much more reliable


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2135 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-12 18:28:39 +00:00
lxnay
8878f7b729 Entropy/dumpTools:
- add functions to serialize/unserialize from/to strings


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2134 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-12 18:27:42 +00:00
lxnay
214b159879 Entropy/Equo:
- add a way to disable downgrades triggered by injected packages (added from SPM) owning revision 9999


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2133 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-12 14:48:35 +00:00
lxnay
c590fae88d Entropy/TriggerInterface:
- when running an external trigger handle its exceptions and be sure that the file is writeable and its path exists


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2131 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-11 19:05:26 +00:00
lxnay
595a830774 Entropy/outputTools:
- we don't need to write 'I cannot understand', it's clear...
Entropy/PortageInterface:
- implement get_world_file() method that returns the world file path
- re-implement Portage world file management during install


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2128 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-11 15:30:56 +00:00
lxnay
2356eed516 Entropy/Repository Client Socket Interface:
- also call settimeout()

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2125 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-11 11:35:15 +00:00
lxnay
43ec10c0b0 Entropy/Socket Interface:
- improve connection and transmission reliability


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2123 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-11 11:24:51 +00:00
lxnay
d26da26d14 Entropy/Socket Interface:
- handle socket exceptions in handle_end_answer()

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2122 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-11 10:43:37 +00:00
lxnay
a1b3ad85ed Entropy/EntropyDatabaseInterface:
- do not touch cache when running Live


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2121 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-11 08:06:55 +00:00
lxnay
3cea9cef64 Entropy/EAPI=3:
- improve client reliability by retrying failed commands 3 times before giving up
- some cleanups


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2118 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-08 15:59:17 +00:00
lxnay
3549eb6913 Entropy/outputTools:
- do not flush stdout every now and then
Entropy/Socket Interface:
- handle socket errors and timeouts in CommandProcessor.process()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2117 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-08 15:20:43 +00:00
lxnay
725fd7ddda Entropy/EquoInterface:
- we don't need to recaculate available packages after treeupdates


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2116 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-08 12:28:11 +00:00
lxnay
fd3abe3c40 Entropy:
- make libraries_test to skip non-files

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2114 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-07 17:19:48 +00:00
lxnay
5f1f13244c Entropy:
- make libraries_test to not skip non-executables

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2113 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-07 16:33:25 +00:00