Commit Graph

355 Commits

Author SHA1 Message Date
lxnay
a093dc1734 Entropy/entropyConstants:
- add repoid key to etpConst['server_repositories']


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2386 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-16 20:59:57 +00:00
lxnay
051de39d8a Entropy/entropyConstants:
- add document types descriptions (singular form)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2381 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-15 16:22:35 +00:00
lxnay
9af2dd6de9 Entropy/UGCCacheInterface:
- add UGCClientInterface.get_docs() cache infrastructure
Entropy/Socket/OpenSSL:
- add SysCallError exception handling
Entropy/entropyConstants:
- add ugc types description


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2375 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-07 19:50:20 +00:00
lxnay
a9b49c4e91 Entropy/RepoInterface:
- fix a typo in ____construct_paths() and add 'profile.link' item
- run_sync(): remove self.Entropy.update_ugc_cache() call, not needed
Entropy/EquoInterface:
- loadRepositoryDatabase(): verify that repository id really exists
Entropy/DistributionUGCCommands:
- fix commands syntax
Entropy/UGCCacheInterface:
- support multi-threaded mode
- improve performance
- get_package_downloads(): return 0 instead of None in case of errors
- get_downloads_cache(), get_vote_cache(): check against pickle load exceptions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2368 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-05 18:33:22 +00:00
lxnay
703656912a Entropy/UGCCacheInterface:
- new general purpose UGC caching infrastructure to speed up iterations when no up-to-date data is needed
Entropy/UGCClientInterface:
- move every caching related function to the new UGCCacheInterface class
- add some caching stuff
- make is_repository_eapi3_aware() faster
Entropy/DistributionUGCInterface:
- fix an error inside the query of get_ugc_alldownloads()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2365 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-31 15:13:45 +00:00
lxnay
0695e72048 Entropy/SocketHostInterface:
- add support for noop string
- add some testing code


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2358 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-31 10:54:50 +00:00
lxnay
3b425c3b41 Entropy/UGC Interface:
- move UGC package vote range to etpConst['ugc_voterange']
- add voting support to Equo


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2340 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 13:00:10 +00:00
lxnay
76c16149ad Entropy/Server Interface:
- export binary packages expiration days setting to server.conf


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2339 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 11:29:25 +00:00
lxnay
e3cfc4a298 Entropy/EquoInterface:
- do not allow to set an invalid database compression format on addRepository or during constants init


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2337 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 11:00:54 +00:00
lxnay
83a9b57c84 Entropy/UGCClientAuthStore:
- implementation of the UGC login credentials handling interface completed
Entropy/UGCClientInterface:
- main UGC client-side interface outlined


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2291 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-24 07:49:45 +00:00
lxnay
9ba89080b5 Entropy/Constants:
- export UGC doctypes to the constants dictionary


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2279 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-21 08:36:25 +00:00
lxnay
71eb2d276a Entropy/entropyConstants:
- move repository string parsing for both client and server to specific functions:
 - const_extractClientRepositoryParameters()
 - const_extractServerRepositoryParameters()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2252 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-06 17:22:26 +00:00
lxnay
651b3b9efb outputTools:
- implemented generic method inputBox(), in this way we can have reimplement it depending on the frontend
- make readtext handle password submissions (no echo)
Entropy/Repository Manager:
- implement a ready to use input dialog widget in managerTools
- started to implement repository authentication (if enabled)
- reimplemented inputBox method
- added a PasswordEdit widget, a subclass of urwid.Edit for password inputs
Entropy/entropyConstants:
- add ssl_service_port, service_port and service_url information to etpConst['server_repositories'] and updated repository| syntax (backward compat btw)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2239 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-03 23:01:14 +00:00
lxnay
d37a49d901 Entropy/SocketHostInterface/SSL:
- update create_ca_certs() and rename it to create_ca_server_certs()
- make SSL certificates creation fully automated
Entropy/ServerInterface:
- make upload_database() to push both server and CA certificates


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2223 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 13:39:26 +00:00
lxnay
1b03c09179 Entropy/SSL Services:
- add ssl_port parameter to etpRepositories, making it configurable
- update entropyTools.saveRepositorySettings() accordingly
Entropy/constants:
- add CA.crt and CA.key constants that will be used by the new SSL code in SocketHostInterface


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2215 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-02 12:51:49 +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
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
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
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
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
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
40f78d159f Entropy:
- fix reading non-ascii characters from equo.conf when filling etpConst['configprotect'] and etpConst['configprotectmask']


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2107 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-04 10:13:32 +00:00
lxnay
36e568f247 Entropy:
- implement a new entropyTools function to write settings to config files: writeParameterToFile()
- some misc updates


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2079 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-02 09:09:38 +00:00
lxnay
ef71828ffd Entropy:
- fix bugzilla #430
- fix EquoInterface.unmask_package()
- implement live package masking/unmasking support


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2066 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-01 11:50:53 +00:00
lxnay
7c974b9078 Entropy/Permissions:
- set proper permissions to the pid file
- ignore OSError exceptions on run_sync() when trying to setup database file permissions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2046 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-30 11:08:48 +00:00
lxnay
36d7e81b15 Entropy:
- make nice level configurable in entropy.conf


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2022 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-28 11:26:41 +00:00
lxnay
7c20a83df6 Entropy/Socket Interface:
- allow to enable/disable stdout logging
- make socketLog loglevel configurable through etpConst


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2007 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-27 23:18:43 +00:00
lxnay
a5e21e1965 Entropy/Socket Interface:
- add IP blacklisting support
- fix a few bugs


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2006 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-27 23:05:33 +00:00
lxnay
769bfe75a2 Entropy:
- add automatic --debug option handling

Entropy/Repository Service:
- handle sqlite threads correctly
- some misc fixes


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1998 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-27 16:29:13 +00:00
lxnay
f0f1e48249 Entropy/Socket Interface:
- switch default port from 999 to 1026 (unprivileged)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1981 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-27 10:58:39 +00:00
lxnay
9e5b8da134 Entropy/Repository Services:
- implement database locks handling for the EAPI=3 repository server
- some misc fixes


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1978 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-27 10:29:06 +00:00
lxnay
3e74e28cf1 Entropy/EquoInterface/EAPI=3 support:
- improve EAPI1,2 experience when downloading a repository database
- improve EAPI=3 performance and completeness (not yet done)
- switch default EAPI to 3 (from 2)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1977 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-27 08:24:50 +00:00
lxnay
aa06ab0e2b Entropy/SocketHostInterface:
- rewrite interface TCP data structure
- more work on EAPI=3
- some bug fixes


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1976 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-26 12:30:55 +00:00
lxnay
0031249040 Entropy/Repository Server Interface:
- more work on it
- general improvements on SocketHostInterface


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1975 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-26 01:00:02 +00:00
lxnay
2b1faaf6b5 Entropy/RepositoryServerSocketInterface:
- started to implement EAPI=3 support
- various bugfixes


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1974 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-25 20:20:17 +00:00
lxnay
88aa8c83a6 Entropy/ServerInterface:
- also upload /etc/make.conf && make.profile and all the package.* filles
Entropy:
- update TODO


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1964 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-24 08:06:09 +00:00
lxnay
ff64dd6c6c Entropy/ServerInterface/CommunityRepositories:
- started to interface equo to the new Community Repositories interface


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1961 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-23 18:49:00 +00:00
lxnay
cfe87659ea Entropy:
- fix some possible encoding issues on QAInterface.content_test()
- preparing to implement the Community Repositories interface


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1959 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-23 15:34:53 +00:00
lxnay
b071868f01 Entropy:
- add QAInterface where all the QA functions will be placed
- improve performances of libraries_test()
- rework libraries_test() to be more high level
- lots of bug fixes and some new functions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1952 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-20 16:10:51 +00:00
lxnay
41a562da30 Entropy/i18n:
- completed text_configuration.py i18n support
Entropy:
- misc bug fixes


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1949 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-20 00:20:29 +00:00
lxnay
b6ee2ba025 Entropy:
- move etpDatabase to entropy.py and rename it to EntropyDatabaseInterface
- say goodbye to databaseTools
- update other areas accordigly
Equo:
- add i18n support


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1943 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-19 14:13:03 +00:00
lxnay
306552d004 Entropy:
- updated TODO
- some slight speed improvements here and there
- allow to configure activator packages expiration days in ENV by setting ETP_EXPIRATION_DAYS


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1937 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-16 07:28:45 +00:00
lxnay
24f447e45e Entropy:
- introduce preliminary priority management infrastructure


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1918 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-05 18:02:53 +00:00
lxnay
3d2459de30 Entropy:
- fix const_setup_perms(), didn't chmod properly
- improve system reliability by checking if another instance is running before starting critical tasks
- some cleanups on the notification applet


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1910 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-03 09:13:41 +00:00
lxnay
b5e98a0b8e Entropy/EquoInterface/etpDatabase:
- removed 'info cache' from etpDatabase, there is no need to have an on-disk cache when sqlite3 is faster
- updated EquoInterface accordingly
- improved reliability when running multiple Entropy instances
Entropy/Spritz:
- fixed some minor bugs


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1890 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-01 00:01:29 +00:00
lxnay
a9b4a91676 Entropy/ServerInterface/EquoInterface:
- reworked categories description support to use /usr/portage metadata.xml files


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1874 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-04-29 23:09:23 +00:00
lxnay
173ad4ef43 Entropy/ServerInterface/etpDatabase:
- implemented categories description code, server-side


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1873 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-04-29 18:19:07 +00:00
lxnay
a7512164d5 Entropy:
- run etpDatabase.fixKdeDepStrings() only on dbname != 'generic'


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1863 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-04-24 20:38:22 +00:00
lxnay
22b180d046 Entropy/EquoInterface:
- add dep strings auto updates infrastructure (starting with bad KDE dep strings)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1861 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-04-24 20:19:00 +00:00