Commit Graph

3141 Commits

Author SHA1 Message Date
lxnay
de9cb17e9e Entropy/PackageInterface:
- remove add_download() from fetch_file_on_mirrors()
Entropy/Equo/Spritz:
- add add_downloads() (from UGC interface) after the fetch process
Entropy/SocketHostInterface/Repository Daemon:
- add a new command that let client register all the downloaded packages at once


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2646 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-04 22:24:39 +00:00
lxnay
0c1cf96284 Entropy/UGCClientInterface:
- add a thread lock to serialize multithreaded requests


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2645 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-04 21:31:28 +00:00
lxnay
3396cab82a Entropy/SystemSocketClientInterface:
- do not reset hostname and hostport on disconnect to make reconnect_socket() working


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2644 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-04 20:47:40 +00:00
lxnay
ee605e35d8 Entropy/SocketHostInterface/CommandProcessor:
- load authenticator and service interface only if needed by the command


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2643 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-04 20:18:26 +00:00
rogerc
af68db28a7 update ca translation
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2642 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-04 18:58:24 +00:00
lxnay
5378b018ff Entropy/RepoInterface/EAPI3:
- reworked EAPI3 sync through the repository daemon to be smarter and less intensive for the server


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2641 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-04 14:52:24 +00:00
lxnay
42d0a7798e Entropy/SocketHostInterface/CommandProcessor:
- fix garbage collection

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2640 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-04 12:55:05 +00:00
lxnay
c29245ba66 Entropy/SocketHostInterface:
- move finish() in RequestHandler to finish_request() and close_request() in HostServer


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2639 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-04 12:53:02 +00:00
lxnay
39cf930722 Entropy/DistributionUGCInterface:
- setup an automatic type converter to speed up methods and reduce overhead
Entropy/SocketHostInterface:
- move connection validation to the host server class, to drop bad ones early in the pipe


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2638 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-04 12:36:59 +00:00
lxnay
cc724aae02 Entropy/SocketHostInterface:
- handle(): fine tune zombie processes check


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2637 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-03 22:55:47 +00:00
lxnay
6fc7c949ea Entropy/SocketHostInterface:
- reduce the forked requests timeout to 15 (from 300) seconds
- export the setting to etpConst


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2636 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-03 22:48:43 +00:00
lxnay
965fbb2e83 Entropy/DistributionUGCInterface:
- optimize some methods
- add new search methods search_pkgkey_items(), search_content_items(), search_username_items(), search_keyword_items()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2635 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-03 17:31:54 +00:00
lxnay
7c93e48277 Entropy/notification applet:
- fine tune refresh interval variable, from 60 seconds to 3600
- add a random refresh time delta


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2634 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-03 16:31:34 +00:00
lxnay
cced1db900 Entropy/python libs:
- goodbye old and dusted python libraries


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2633 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-03 15:34:43 +00:00
lxnay
9c5301a74f Entropy/TriggerInterface:
- write more info about portage exceptions on relevant triggers
Entropy/PortageInterface:
- add two helper methods write_traceback_to_log() and write_to_log()
- fix an issue causing Portage to raise UnsupportedAPIException, doebuild()'s mysettings must contain a valid EAPI string


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2631 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-03 15:26:17 +00:00
lxnay
511a1596ab Entropy/DistributionUGCInterface:
- do_download(): I am a moron


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2630 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-03 08:33:19 +00:00
lxnay
1e54b06fa8 Entropy/DistributionUGCInterface:
- do_download(): spawn store_download_data properly


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2629 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-02 22:05:04 +00:00
lxnay
9ae27ce874 Entropy/DistributionUGCInterface:
- do_download(): spawn store_download_data properly


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2628 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-02 22:04:21 +00:00
lxnay
8068a4bd10 Entropy/DistributionUGCInterface:
- do_download() update iddownload on insert_download()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2627 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-02 21:52:37 +00:00
lxnay
c39d406520 Entropy/DistributionUGCInterface:
- store extra download information on do_download()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2626 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-02 21:49:04 +00:00
lxnay
51e2d952f9 Entropy/SocketHostInterface:
- reduce session TTL by default
- add soft barrier to the simultaneous connections limit, adding random lag


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2625 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-02 20:55:36 +00:00
lxnay
909b26f44c Entropy/DistributionUGCInterface:
- update user score every ugc add/removal

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2624 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-02 13:10:09 +00:00
lxnay
a1a58a6990 Entropy/SocketHostInterface:
- in case the authenticator raises an exception during load, close the connection and say goodbye


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2623 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-02 11:35:51 +00:00
lxnay
ea288f58ed Entropy/SocketHostInterface:
- increase fork timeout to 5 minutes


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2621 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-02 11:19:34 +00:00
lxnay
8488f79f5d Entropy/SocketHostInterface:
- handle(): kill the zombie process after timeout


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2620 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-02 11:09:38 +00:00
lxnay
14e7821fd0 Entropy/Spritz/UGC:
- fix ugc item description object handling


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2619 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-02 11:05:20 +00:00
lxnay
5fcbe084e5 Entropy/SocketHostInterface:
- introduce max connections per IP limit
- introduce automatic PID killer on handle() when time is over (default timeout = 120 seconds)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2618 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-02 11:00:59 +00:00
lxnay
6387bb737b Entropy/PortageInterface:
- calculate_dependencies(): handle EAPI2 IUSE items in a better way, although no valid documentation seems to be available at this time


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2617 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 19:55:21 +00:00
lxnay
fdf957c4ae Entropy/DistributionUGCInterface:
- improve get_user_alldocs(): order by pkgkey


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2615 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 18:31:23 +00:00
lxnay
224b323775 Entropy/DistributionUGCInterface:
- improve get_user_alldocs() SQL


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2614 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 18:27:13 +00:00
lxnay
36e59f5ee7 Entropy/DistributionUGCInterface:
- get_user_alldocs(): method to retrieve all the documents belonging to a certain userid
- get_user_generic_doctype(): less code duplication, that is


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2613 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 18:14:01 +00:00
lxnay
f903dc9306 Entropy/DistributionUGCInterface:
- get_user_score_ranking(): fix sql query
- get_user_votes_count(): return int, not float


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2612 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 17:34:42 +00:00
lxnay
239276ea24 Entropy/DistributionUGCInterface:
- get_user_score_ranking(): execute_query was wrong


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2611 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 17:05:47 +00:00
lxnay
9fe8678b4b Entropy/DistributionUGCInterface:
- get_user_score_ranking(): new method, returns the actual user ranking based on Entropy score
- get_users_scored_count(): new method, returns the number of ranked users


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2610 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 16:58:00 +00:00
lxnay
21f0ee4a53 Entropy/DistributionUGCInterface:
- get_user_stats(): extend method adding more info
- get_user_generic_doctype_count(): generic function, less code duplication around in the class


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2609 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 16:37:04 +00:00
lxnay
0b08ea2a3b Entropy/DistributionUGCInterface:
- use hashlib instead of md5 module


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2608 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 15:55:41 +00:00
lxnay
42803a2aac Entropy/DistributionUGCInterface:
- make score weight configurable


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2607 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 12:44:02 +00:00
lxnay
5e738a6a24 Entropy/Equo:
- fix description search


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2606 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 12:02:08 +00:00
lxnay
c553b87c4b Entropy/DistributionUGCInterface:
- fix sql query for get_user_score()

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2605 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 09:26:48 +00:00
lxnay
c680b56eea Entropy/DistributionUGCInterface:
- implement through SQL the user score feature, users will gain points for submitting UGC


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2604 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 09:25:00 +00:00
lxnay
16a76d2dc5 tagging entropy 0.23.2
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2603 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-31 21:30:24 +00:00
lxnay
aa7eebdf2a Entropy:
- we are now >=Python2.5 only, sorry 2.4


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2602 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-31 21:23:00 +00:00
lxnay
35fd724919 Entropy/DistributionUGCInterface:
- make scan_for_viruses() redirect stdout to /dev/null, we really don't need it


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2601 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-31 21:14:43 +00:00
lxnay
71d8f2c3ed Entropy/DistributionUGCInterface:
insert_youtube_video(): always set sabayon as keyword


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2600 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-31 21:07:30 +00:00
lxnay
fbe14ed2ea Entropy/DistributionUGCInterface:
insert_youtube_video(): if no keywords are specified, make the keyword argument of gdata.media = None


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2599 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-31 21:03:11 +00:00
lxnay
04ff44b3e5 Entropy/DistributionUGCInterface:
- get_iddoctype() returns int type
- youtube video upload: reduce title length


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2598 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-31 20:56:55 +00:00
lxnay
e07223fdfb Entropy/DistributionUGCInterface:
- add get_iddoctype(): function


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2597 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-31 18:32:28 +00:00
lxnay
b01b1f4d31 Entropy/misc:
- general code optimization


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2596 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-31 17:53:02 +00:00
lxnay
7f11901c25 Entropy/EmailSender:
- port to >=python-2.5


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2595 cd1c1023-2f26-0410-ae45-c471fc1f0318
0.23.8 0.23.7 0.23.6 0.23.5 0.23.4 0.23.3 0.23.2
2008-10-30 16:39:27 +00:00
lxnay
8663f2fd82 Entropy/EmailSender:
- add smtp auth support


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2594 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-30 10:50:45 +00:00