Commit Graph

8800 Commits

Author SHA1 Message Date
Fabio Erculiani
26cd526b58 [rigo] improve NotificationController and NotificationBox UI 2012-02-17 14:14:38 +01:00
Fabio Erculiani
351b2b23b9 [entropy] fix typo in documentation 2012-02-16 15:58:49 +01:00
Fabio Erculiani
a67a52f49a [eit] enable shared locking usage for "unlocked" methods 2012-02-15 20:08:09 +01:00
Fabio Erculiani
d02d4e9356 [equo] use blocking mode when acquiring the shared lock
This avoids tainting stdout with "please wait" messages
2012-02-15 20:07:33 +01:00
Fabio Erculiani
1371a8d540 [rigo] implement Entropy Resources locking 2012-02-15 19:36:29 +01:00
Fabio Erculiani
91dd06b168 [equo] implement shared Entropy Resources locking where required 2012-02-15 19:36:29 +01:00
Fabio Erculiani
451c2b158b [entropy.client] add support for shared Entropy resources lock acquisition
This makes possible to support the "readers/writers" model by
letting code to acquire Entropy Resources in shared mode (for
readers) and the same in exclusive mode (default, for writers).
2012-02-15 19:36:29 +01:00
Fabio Erculiani
acf5862034 [entropy.client] drop Client.another_entropy_running()
This has been sitting in deprecated state for very long time.
2012-02-15 19:36:28 +01:00
Fabio Erculiani
897a91d443 [entropy.client] migrate Entropy resources locking functions to FlockFile
In order to simplify the code and allow further improvements
(eg. the addition of readers/writers locking), migrate all the
Entropy Resources locking functions to FlockFile().
2012-02-15 19:36:28 +01:00
Fabio Erculiani
c2d0c81923 [entropy.misc] add non blocking methods to FlockFile 2012-02-15 19:36:28 +01:00
Fabio Erculiani
7c2c9437bb [entropy.misc] add FlockFile class
The purpose of this class is to implement a file-based lock,
abstracting away from fcntl.
2012-02-15 19:36:28 +01:00
Fabio Erculiani
6cdede57ab [entropy.cli] remove deprecated acquire_entropy_locks, release_entropy_locks 2012-02-15 19:36:28 +01:00
Sławomir Nizio
24bbfae7c7 [po] update Polish translation, with corrected plural forms thanks to last changes 2012-02-13 22:42:43 +01:00
Fabio Erculiani
4150fa8856 [rigo] implement more methods in AppListStore 2012-02-13 16:49:45 +01:00
Fabio Erculiani
d16a384519 [rigo] properly position installed overlay icon over application icon 2012-02-13 16:35:52 +01:00
Fabio Erculiani
fc59f0bc80 [rigo.utils] drop utf8(), not needed 2012-02-13 16:35:36 +01:00
Fabio Erculiani
1ae1088983 [entropy.cache] put EntropyCacher to sleep when there's nothing to do
Use a semaphore to signal the worker thread if there's something to do,
otherwise the whole thread should just sleep and avoid to poll every
N seconds.
2012-02-13 16:26:39 +01:00
Fabio Erculiani
3a7e33ce72 [rigo] fix WebService cache dir path, make it point to $HOME/.entropy/ws_cache 2012-02-13 15:30:39 +01:00
Fabio Erculiani
0ce9fe62d3 [po] update translations 2012-02-13 14:15:48 +01:00
Fabio Erculiani
affcf20425 [entropy.i18n] rename P_() into ngettext().
intltool-update doesn't understand ngettext function exposed as
P_().
2012-02-13 14:14:45 +01:00
Fabio Erculiani
f4e2ae4640 [rigo] rework model and controllers layers in order to improve caching 2012-02-13 09:42:36 +01:00
Fabio Erculiani
e914763b6d [entropy.client.services] implement ram-caching for get_downloads()
get_downloads() was left uncovered from ram-caching of the responses,
in contraddiction to get_votes() and get_available_downloads(), for
example.
2012-02-13 08:50:44 +01:00
Fabio Erculiani
a7e5f2f3cb [rigo] integrate package icons retrieval 2012-02-12 23:20:05 +01:00
Sławomir Nizio
a8420b5ad5 [i18n] use ngettext in some places where it's most useful 2012-02-12 15:47:58 +01:00
Fabio Erculiani
f59d04baa9 [rigo] add more interactions on the UI, consolidate current code (not complete yet) 2012-02-12 13:27:06 +01:00
Sławomir Nizio
f148ca0694 [rigo] add a TODO line 2012-02-12 00:22:36 +01:00
Fabio Erculiani
c76f3168b7 [rigo] add Rigo prototype app (almost nothing is implemented)
This app will hopefully replace Sulfur at some point in 2012.
You need pygobject[cairo] to get it working.
2012-02-11 23:00:08 +01:00
Fabio Erculiani
7b0c95078b [entropy.client.interfaces.db] do not use "&>", which is bash only
This commit fixes bug #3022
2012-02-10 14:07:48 +01:00
Fabio Erculiani
dafc861554 [entropy.spm] PortagePlugin._pkg_foorm: catch OSError during env setup
ebuild environment setup function for pkg_{prerm,postrm} can raise
OSError during os.makedirs(). Better catch it and handle the failure
nicely so that the user can take proper measures to fix it, instead
of completely bailing out with garbageish text.
2012-02-10 13:55:39 +01:00
Fabio Erculiani
3d3b9967e8 [sulfur] catch WebService.MethodNotAvailable exception during UGC login 2012-02-10 13:20:50 +01:00
Fabio Erculiani
eca401649d [entropy.fetchers] UrlFetcher: handle HTTP response without Content-Length
It can happen that HTTP servers (or those accessed via Proxy) do not
actually provide Content-Length information in the response.
This caused UrlFetcher to keep __remotesize = 0, which means that
the same thought that the file has been fully downloaded already
under some circumstances.
2012-02-09 21:55:52 +01:00
Fabio Erculiani
056f552dab [entropy.client] implement Client.atom_search
As of today, both Equo and Sulfur implemented their own search
functions because the API didn't provide any direct support for
searching through all the repositories. atom_search() now offers
a basic way to do this, without reinventing the weel every time
in consumer code.
2012-02-08 15:27:57 +01:00
Fabio Erculiani
f53b11e527 Tagging Entropy version 1.0_rc87 1.0_rc87 2012-02-03 23:06:47 +01:00
Fabio Erculiani
0ceb055608 Release Entropy 1.0_rc87 2012-02-03 23:06:41 +01:00
Fabio Erculiani
6782d4581a [entropy.spm] PortagePlugin: fix NEEDED.ELF.2 parsing
It can happen that NEEDED.ELF.2 file contains invalid entries,
more specifically, entries that are directories.
2012-02-03 10:57:19 +01:00
Fabio Erculiani
e09ab9af1e Tagging Entropy version 1.0_rc86 1.0_rc86 2012-02-01 19:57:34 +01:00
Fabio Erculiani
b2a0029655 Release Entropy 1.0_rc86 2012-02-01 19:57:15 +01:00
Fabio Erculiani
95ddc907a7 [entropy.const] make possible to override the default arch using /etc/entropy/.arch 2012-02-01 19:56:12 +01:00
Fabio Erculiani
0eb3b67ea5 Tagging Entropy version 1.0_rc85 1.0_rc85 2012-01-29 12:11:36 +01:00
Fabio Erculiani
0594b8df4a Release Entropy 1.0_rc85 2012-01-29 12:11:17 +01:00
Fabio Erculiani
28ee430fc3 [matter] fix typo in list comprehension, use real_queue, not package_queue 2012-01-29 12:06:55 +01:00
Fabio Erculiani
c7253fdab2 [eit.commands.commit] open repository in write mode to force treeupdates 2012-01-26 20:24:57 +01:00
Fabio Erculiani
ea26cfb1da [entropy.server] document pitfalls in scan_package_changes() usage 2012-01-26 20:24:15 +01:00
Fabio Erculiani
898294d0f2 [equo] force digest = "0" when regenerating packages
During installed packages repository generation, try to use older
digest value (from previous repo db) or force it to "0".
This way, packages with invalid digest will not be considered
during dependency calculation if they're already up-to-date.
2012-01-24 20:47:54 +01:00
Fabio Erculiani
45bd00aff9 [entropy.client] do not pull in packages already up-to-date if digest == "0"
If the installed packages repository has been regenerated manually,
some entries may contain invalid digest values. Given this, the same
value is forced to be equal to "0" so that we can skip the check during
dep calculation if an entry like that is found.
2012-01-24 20:45:48 +01:00
Fabio Erculiani
a7b2ff1301 [entropy.db] _migrateBaseinfoExtrainfo: fix foreign_keys usage, and drop all indexes
Using pragma inside executescript() won't work and foreign_keys were
kept enabled, resulting in extrainfo table being wiped.
At the same time, dropping all the indexes before starting dramatically
improves the execution speed.
2012-01-24 18:33:33 +01:00
Fabio Erculiani
7170a1e13c [entropy.db] fix baseinfo indexes creation for baseinfo_extrainfo_2010 schema 2012-01-24 17:10:07 +01:00
Fabio Erculiani
97b45b1fc3 Tagging Entropy version 1.0_rc84 1.0_rc84 2012-01-24 16:41:14 +01:00
Fabio Erculiani
e480256b33 Release Entropy 1.0_rc84 2012-01-24 16:40:57 +01:00
Fabio Erculiani
4175177430 [todo] update TODO 2012-01-24 15:12:18 +01:00