Corentin Chary
8062fddc23
euscanwww: move processing to scan and misc, enhance update_portage_tree
...
update_portage_tree() now:
- watch stderr and stdout for each command
- use layman command instead of layman API for sync because
layman API doesn't work when stdout or stderr is not a real file
(we could probably work around that with pipes and epoll)
- use egencache instead of emerge to generate cache
- export PORTAGE_CONFIGROOT, ROOT, EIX_CACHEFILE etc.. so they
are used everywhere
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2012-07-02 18:16:59 +02:00
Corentin Chary
ba805536ad
euscanwww: add --category to scan_metadata, remove homepage and description
...
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2012-07-02 11:19:49 +02:00
Corentin Chary
093cb4da47
euscanwww/scan_portage: fixes and add --category
...
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2012-07-02 09:43:31 +02:00
Corentin Chary
9e6f885f89
djeuscan/scan_portage: fix purge-packages and purge-versions
...
purge-packages: purge package that are not found in the tree
purge-versions: purge versions that are not found in the tree
Also, only purge versions of packages specified on the command line
when called without --all.
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2012-06-30 10:19:07 +02:00
volpino
779ccdf5d3
euscanwww: use logging in djeuscan.processing
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-22 11:31:15 +02:00
volpino
9bfd728d4f
euscanwww: Moved business logic to djeuscan.processing
...
Moved stuff from management commands to djeuscan.processing
Signed-off-by: volpino <fox91@anche.no>
2012-06-22 09:32:39 +02:00
volpino
9cddc82808
Merge branch 'master' of https://github.com/iksaif/euscan
...
Conflicts:
euscanwww/djeuscan/models.py
Signed-off-by: volpino <fox91@anche.no>
2012-06-08 14:46:37 +02:00
volpino
b43bf8fa28
euscanwww: Removing duplicated code
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-08 14:43:18 +02:00
volpino
43e996d83d
euscanwww: Fixed the upstream task that was completely broken
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-08 14:24:17 +02:00
volpino
8501805f8e
euscanwww: Scan tasks recieve a list of packages
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-05 13:30:31 +02:00
Corentin Chary
5b1884ead7
djeuscan: fix alive / packaged updates
...
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2012-06-04 10:28:06 +02:00
volpino
5970b4df37
euscanwww: Admin improved and simple task launcher added
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-03 09:43:49 +02:00
volpino
47ec539e1d
euscanwww: scan_upstream imports euscan.scan
...
scan_upstream command imports euscan.scan and simply calls a function,
it doesn't call a subprocess
Signed-off-by: volpino <fox91@anche.no>
2012-05-31 18:42:37 +02:00
volpino
56c4d79fb2
euscanwww: starting implementing Celery tasks
...
Basic tasks.py module, some fixes in the management commands
Signed-off-by: volpino <fox91@anche.no>
2012-05-30 22:54:55 +02:00
Corentin Chary
83f5df4daf
euscanwww: fix the scan process
...
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2012-05-29 15:29:03 +02:00
volpino
c36f625a54
euscanwww: fixing colored output
...
Signed-off-by: volpino <fox91@anche.no>
2012-05-28 23:24:09 +02:00
volpino
fce8ef347b
euscanwww: management commands are validators aware
...
Management commands should create objects that don't raise
ValidationError
Signed-off-by: volpino <fox91@anche.no>
2012-05-28 22:57:33 +02:00
volpino
b46e9acc08
euscan: Refactored all management commands
...
Management commands are refactored to have the logic moved from the
commands themselves to a separated function in order to make them easily
convertible into Celery tasks
Commands are renamed to be modules importable from other python scripts
Signed-off-by: volpino <fox91@anche.no>
2012-05-28 21:19:53 +02:00
volpino
8c91855a58
Lovely day for PEP8 and pylint!
2012-04-28 18:16:05 +02:00
Corentin Chary
9e1ff8adb7
euscanwww: use tz aware datetimes
...
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
2012-04-23 17:05:46 +02:00
Corentin Chary
da269b0711
euscanwww: euscan -> djeuscan
...
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
2012-04-04 17:31:54 +02:00