Commit Graph

118 Commits

Author SHA1 Message Date
Fabio Erculiani 5ec9677460 entropy.Client: rework calculate_world_updates when using ignore-spm-downgrades
So we have several nasty issues when using ignore-spm-downgrades here.
First of all, calculate_world_updates should get the setting directly from
SystemSettings instead of bugging developer asking for it.
Secondly, calculate_world_updates should return a 4D tuple, also containing
the matches ignored when ignore-spm-downgrades is enabled.
Moreover, Spritz packages.py getPackageItem featured an unused argument,
which has been dropped.

I know this commit is a bitch because we are talking about changing API
and affecting several files at once.
2009-05-12 14:44:52 +02:00
Fabio Erculiani 89d25b66fa Spritz: when calling idle_add, make sure that the function that will be called returns False 2009-05-09 17:25:46 +02:00
Fabio Erculiani 7eb454b291 Spritz: use idle_add instead of timeout_add gobject method 2009-05-09 17:11:20 +02:00
Fabio Erculiani 0feebd08bf Spritz: TextReadDialog, add save/cancel buttons 2009-05-08 14:52:27 +02:00
Fabio Erculiani a74c7f5228 Spritz: TextReadDialog, allow to provide gtk.TextBuffer objects directly and read/write mode 2009-05-08 14:01:10 +02:00
Fabio Erculiani 061be8880a Spritz, dialogs.py: TextReadDialog, fix typo 2009-05-07 18:13:51 +02:00
Fabio Erculiani c2d0e2c22f Spritz: create generic text viewer and use it as license viewer 2009-05-07 17:45:56 +02:00
Fabio Erculiani 7779b7f7c1 Spritz, masked packages dialog: fine tune treeview columns width 2009-05-07 17:29:09 +02:00
Fabio Erculiani ee7db45033 Spritz, dialogs.py: when using timeout_add, don't use keyword args 2009-05-07 13:27:10 +02:00
Fabio Erculiani d79ea24614 Spritz: began code refactoring.
Spritz now warns if a repository has been added but not downloaded.
Several initial code moves.
2009-05-05 07:39:14 +02:00
Fabio Erculiani 24639fc71d Spritz: use gobject.timeout_add instead of a custom LIFO buffer in dialogs module 2009-05-03 17:43:43 +02:00
Fabio Erculiani 201da8a9fd Spritz: fix UGC tab in package properties' window 2009-05-03 17:25:22 +02:00
Fabio Erculiani bf9ac1a287 entropy.*: move from etpRepositories to SystemSettings['repositories']['available'] 2009-04-06 20:35:02 +02:00
lxnay 97590a6cad Entropy/*:
- use spawn_function instead of spawnFunction function (deprecated)
- use uncompress_tar_bz2 instead of uncompressTarBz2 function (deprecated)
- use bytes_into_human instead of bytesIntoHuman function (deprecated)
- use hide_ftp_password instead of hideFTPpassword function (deprecated)
- use get_file_unix_mtime instead of getFileUnixMtime function (deprecated)
- use get_random_temp_file instead of getRandomTempFile function (deprecated)
- use get_file_timestamp instead of getFileTimeStamp function (deprecated)
- use convert_unix_time_to_human_time instead of convertUnixTimeToHumanTime function (deprecated)
- use get_current_unix_time instead of getCurrentUnixTime function (deprecated)
- use get_year instead of getYear function (deprecated)
- use convert_seconds_to_fancy_output instead of convertSecondsToFancyOutput function (deprecated)
- use get_repository_settings instead of getRepositorySettings function (deprecated)
- use write_ordered_repositories_entries instead of writeOrderedRepositoriesEntries function (deprecated)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3187 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 13:45:55 +00:00
lxnay fac809a8d5 Entropy/*:
- use print_traceback instead of printTraceback function (deprecated)
- use get_traceback instead of getTraceback function (deprecated)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3182 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 12:16:09 +00:00
lxnay aeee2d2b22 Entropy/*:
- use print_traceback instead of printTraceback function (deprecated)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3181 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 12:14:50 +00:00
lxnay a4d8f35dd2 Entropy/Spritz:
- dialogs, add missing module import


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3168 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-14 16:19:53 +00:00
lxnay 3a97fc8c8b Entropy/Client/Interface:
- split Client class into single ones
- deprecated camelCase methods
- remove a few, unused or useless
Entropy/docs:
- update APICHANGES
Entropy/*:
- adapt the code to work with non-deprecated methods


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3154 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-12 19:18:27 +00:00
lxnay d7151b6555 Entropy/*:
- update module imports to reflect the new entropy package structure
Entropy/Client/Interfaces/Package:
- fixed sources_fetch_step source packages download


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3150 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-11 09:36:47 +00:00
lxnay 83e184fc5e Entropy/*:
- make use of the new entropy package structure


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3123 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 15:49:55 +00:00
lxnay 715421089b Entropy/MELTDOWN :-):
- entropy modules is now a python package, kept backward compatibility for now


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3121 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 15:24:30 +00:00
lxnay 40caacd0fb Entropy/entropyTools/*:
- new version of parallelTask, API changes, update every part of the code that uses it


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3071 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-23 22:56:54 +00:00
lxnay 14134e7007 Entropy/entropyTools/*:
- new version of TimeScheduled, API changes, update every part of the code that uses it


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3070 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-23 22:50:34 +00:00
lxnay dd743eadc1 Entropy/Spritz:
- add support for ChangeLog visualization in package properties window
Entropy/Equo/Server:
- add changelog query support
Entropy/TODO:
- update TODO


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3019 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-14 14:42:40 +00:00
lxnay 4dd6ed5b20 Entropy/Spritz:
- LicenseDialog, change API, make it multithreading-aware


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2975 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-31 15:41:00 +00:00
lxnay 37766ce0b9 Entropy/Spritz:
- TaskQueue executor: wrap code around a while loop to keep the FIFO empty as much as possible


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2973 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-31 14:54:28 +00:00
lxnay 49dbdf4b21 Entropy/Spritz/System Manager Client:
- unparallelize most of the socket calls to improve reliability


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2948 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-26 14:46:03 +00:00
lxnay 68cf13d04c Entropy/TODO:
- update TODO
Entropy/Spritz/Repository Manager Client:
- when printing an error dialog, use TaskQueue to route the GFX calls to the right thread
- when clicking on the SPM package info button, fork after having issued the socket command


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2945 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-26 10:37:10 +00:00
lxnay 76a4578f1d Entropy/SystemManagerServerInterface:
- revert previous changes


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2941 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-26 09:25:34 +00:00
lxnay 730b0f237b Entropy/TODO:
- update TODO :-)
Entropy/GUI Repository Manager:
- rework the structure to avoid calling GUI functions outside the main thread, since GTK libs are not completely thread-safe
- add a bunch of bug fixes


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2936 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-20 19:56:45 +00:00
lxnay 955514a672 Entropy/Spritz:
- Package Unmask dialog: make sure to only enable valid treeview elements and filter out garbage like parent categories


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2929 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-17 17:02:49 +00:00
lxnay 26aa683cf6 Entropy/Spritz:
- move the exception window to its own dialogs.py class
- make every Spritz-based app to use ExceptionDialog directly to reduce code duplication
- remove gtkEventThread since it's not needed anymore
- fix traceback string reported by Spritz, which was a bit confusing


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2926 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-17 15:13:06 +00:00
lxnay 3c76a90f17 Entropy/Spritz:
- in confirmation dialogs and queue view, show packages marked for removal at the top


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2920 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-17 11:15:16 +00:00
lxnay 2f7c6b8e94 Entropy/TODO:
- update TODO
Entropy/PackageSettings class:
- rename to SystemSettings
- add filesystem directories and its mask parsers
Entropy/*:
- rename PackageSettings to SystemSettings
Entropy/SystemSettings:
- improve parsers code and speed


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2908 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-16 13:40:41 +00:00
lxnay aa307fe4b8 Entropy/Spritz:
- implement package sets add/removal feature
- InputDialog: implement ListStore/TreeView for EquoInterface.inputBox()
Entropy/TODO:
- update TODO


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2901 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-14 22:39:39 +00:00
lxnay 93d8e990b1 Entropy/Spritz:
- add SpritzApplication argument to EntropyPackageView __init__
- spawnUgcUpdate: filter out SystemExit exceptions
- addPackages: improve speed, avoid to trash cache on every call
- preliminary implementation of the package re-masking feature


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2896 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-14 12:41:53 +00:00
lxnay 30ed52ccc7 Entropy:
- move etpConst['packagemaskingreasons'] to EquoInterface.PackageSettings dict
- add reverse dict in EquoInterface.PackageSettings to standardize the package masking identifiers


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2885 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-11 10:30:56 +00:00
lxnay 2ffb634db2 Entropy/Spritz:
- implement deptest feature
- stub implementation of libtest


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2875 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-08 22:45:52 +00:00
lxnay 272f80ee08 Entropy/Spritz:
- allow colors customization


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2869 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-08 20:02:43 +00:00
lxnay 050370b0ee Entropy/Spritz:
- move all the colors variable to SpritzConf
- improve speed on the per-category packages view and enable rubber banding
- other misc changes to improve speed


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2866 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-08 14:18:31 +00:00
lxnay 5592ecfb84 Entropy/Spritz:
- GLSA info window: substitute labels with TextViews to avoid running off-screen :-)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2743 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-08 15:30:29 +00:00
lxnay b0f8114674 Entropy/Spritz:
- improve queue load/save speed
- make it working, eventually


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2741 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-08 14:52:57 +00:00
lxnay c18d09deb2 Entropy/Spritz:
- fix package masking dialog, transforming it into a simple window with GtkDialog functionalities
All this because GtkDialog widgets are always modal when running and in our case, the package properties window was locked


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2740 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-08 14:16:04 +00:00
lxnay 17c4ee1e7a Entropy/Spritz:
- InputDialog: if parent is not specified, center widget on the screen
- fine tuning other windows too

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2680 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-12 13:11:56 +00:00
lxnay 9d311cb5bd Entropy/Spritz:
- effectively split the repository manager client


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2679 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-12 12:55:02 +00:00
lxnay 37a1ca8230 Entropy/Spritz:
- make the repository manager client also a stand-alone application


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2678 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-12 12:31:42 +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 2c0f3c0827 Entropy/Spritz/Repository Manager:
- add support for notice boards handling
Entropy/Spritz:
- main code reorganization and cleanup (improved stability)
- bye bye gui.py
- add support for notice boards handling
- add support for installed packages database backup/restore
- add the ability to load without/with a corrupted installed packages database (safe mode)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2524 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-13 17:17:41 +00:00
lxnay a23df9b5f6 Entropy/Spritz:
- add information on available branches into the repository information string


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2505 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-08 18:40:12 +00:00
lxnay 561db807d5 Entropy:
- databases now split by branch (first chunk, ServerInterface migrated, EquoInterface and Repository Daemon to go


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2496 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-08 12:05:00 +00:00