From a1cc8425f2fbd4937476983c7389ad87dfa668f5 Mon Sep 17 00:00:00 2001
From: Corentin Chary
Date: Fri, 14 Sep 2012 10:28:26 +0200
Subject: [PATCH 1/4] euscan: TODO
Signed-off-by: Corentin Chary
---
TODO | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/TODO b/TODO
index eaa0d72..3ad5887 100644
--- a/TODO
+++ b/TODO
@@ -39,6 +39,12 @@ metadata.xml
packages:
- MySQL: should use http://downloads.mysql.com/archives/
- mariadb: should use http://downloads.askmonty.org/MariaDB/+releases/
+- freecode: to scan freecode.com
+- remote-id: type deb repository. Example I always scan:
+ http://dl.google.com/linux/musicmanager/deb/dists/stable/main/binary-i386/Packages
+ to see if google has release an update, same would help for all google
+ packages and some of the actual debian packages.
+ Something similar could be done for rpm repositories.
euscanwww
---------
From 32506e252a43646ede2195e81e3e62791d2c9af0 Mon Sep 17 00:00:00 2001
From: Corentin Chary
Date: Fri, 14 Sep 2012 10:29:06 +0200
Subject: [PATCH 2/4] euscanwww: small scan related fixes
Signed-off-by: Corentin Chary
---
euscanwww/djeuscan/management/commands/scan_upstream.py | 1 -
euscanwww/djeuscan/processing/misc/update_portage_trees.py | 2 +-
euscanwww/djeuscan/tasks.py | 3 +++
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/euscanwww/djeuscan/management/commands/scan_upstream.py b/euscanwww/djeuscan/management/commands/scan_upstream.py
index e941e73..a1528d4 100644
--- a/euscanwww/djeuscan/management/commands/scan_upstream.py
+++ b/euscanwww/djeuscan/management/commands/scan_upstream.py
@@ -9,7 +9,6 @@ from djeuscan.processing.scan import scan_upstream
logger = logging.getLogger(__name__)
-
class Command(BaseCommand):
_overlays = {}
diff --git a/euscanwww/djeuscan/processing/misc/update_portage_trees.py b/euscanwww/djeuscan/processing/misc/update_portage_trees.py
index e91a18c..3c52eaf 100644
--- a/euscanwww/djeuscan/processing/misc/update_portage_trees.py
+++ b/euscanwww/djeuscan/processing/misc/update_portage_trees.py
@@ -111,11 +111,11 @@ def update_portage_trees(logger=None):
logger = logger or FakeLogger()
logger.info("Running emerge --sync")
emerge_sync(logger)
+ emerge_metadata(logger)
logger.info("Running layman --sync")
layman_sync(logger, cache=True)
#logger.info("Running emerge --regen")
#emerge_regen(logger)
- emerge_metadata(logger)
logger.info("Running eix-update")
eix_update(logger)
logger.info("Done!")
diff --git a/euscanwww/djeuscan/tasks.py b/euscanwww/djeuscan/tasks.py
index acfb3d7..51e1c53 100644
--- a/euscanwww/djeuscan/tasks.py
+++ b/euscanwww/djeuscan/tasks.py
@@ -360,4 +360,7 @@ admin_tasks = [
update_portage,
update_upstream,
scan_package,
+ send_update_email,
+ send_weekly_email,
+ send_monthly_email,
]
From e13d54100d931ce01530119eaec08f1810105c30 Mon Sep 17 00:00:00 2001
From: Corentin Chary
Date: Fri, 14 Sep 2012 10:29:24 +0200
Subject: [PATCH 3/4] euscanwww/templates: minor fixes
Signed-off-by: Corentin Chary
---
euscanwww/djeuscan/templates/euscan/about.html | 2 +-
euscanwww/djeuscan/templates/euscan/accounts/euscan_email.txt | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/euscanwww/djeuscan/templates/euscan/about.html b/euscanwww/djeuscan/templates/euscan/about.html
index 657edfb..592af18 100644
--- a/euscanwww/djeuscan/templates/euscan/about.html
+++ b/euscanwww/djeuscan/templates/euscan/about.html
@@ -9,7 +9,7 @@
This web interface allow you to browse the portage tree, and find outdated ebuilds. It is designed to help maintainers monitor their packages and bump them.
- euscan code source is available at http://git.iksaif.net/?p=euscan.git;a=summary.
+ euscan code source is available on github.
Original Gentoo artwork and logos copyright (C) Gentoo Foundation.
diff --git a/euscanwww/djeuscan/templates/euscan/accounts/euscan_email.txt b/euscanwww/djeuscan/templates/euscan/accounts/euscan_email.txt
index fe609d2..b08c8a4 100644
--- a/euscanwww/djeuscan/templates/euscan/accounts/euscan_email.txt
+++ b/euscanwww/djeuscan/templates/euscan/accounts/euscan_email.txt
@@ -48,3 +48,4 @@ Hot packages:
--
This email was sent by euscan
+Go to your euscan account to change email notification settings
From 89f31929378aa91efff7aa9e1848f791437d2b5c Mon Sep 17 00:00:00 2001
From: Corentin Chary
Date: Fri, 14 Sep 2012 10:42:53 +0200
Subject: [PATCH 4/4] euscan: update TODO
Signed-off-by: Corentin Chary
---
TODO | 26 +++++++++++++++++++-------
1 file changed, 19 insertions(+), 7 deletions(-)
diff --git a/TODO b/TODO
index 40488c7..8c7cf35 100644
--- a/TODO
+++ b/TODO
@@ -27,17 +27,21 @@ euscan
-- Berlios: nast, enigma, usbprog, python-wifi, wifi-radar, bcm43xx-fwcutter
-- Google code: pychess, redis, rssguard, ostinato, pidgin-facebookchat
-metadata.xml
-------------
+### metadata.xml
-- Finalize format
- Create a subtree of metadata using custom rules
+- Finalize format
- Write a GLEP
+- Convert subtree
- Commit metadata.xml changes to tree
packages:
- MySQL: should use http://downloads.mysql.com/archives/
- mariadb: should use http://downloads.askmonty.org/MariaDB/+releases/
+
+
+### handlers
+
- freecode: to scan freecode.com
- remote-id: type deb repository. Example I always scan:
http://dl.google.com/linux/musicmanager/deb/dists/stable/main/binary-i386/Packages
@@ -54,7 +58,6 @@ euscanwww
### packages
-
- show additional informations in the web interface (remote-id, etc...)
- show the content of the ebuild for a particular version
- Ignore alpha/beta if current is not alpha/beta: per-package setting using metadata.xml ?
@@ -66,14 +69,21 @@ euscanwww
Move account stuff to an euscan.account application to keep only package related stuff in djeuscan.
+### logs
+
+Move log models into djeuscanhistory ?
+
### models
- Repository (added or not, from layman + repositories.xml)
- Category (read metadata.xml)
- Url ad ManyToMany
- Arches and Keyword
+- Metadata, herds, maintainers and homepage are per-version, not per package. Store it in Version instead.
+ Define last_version that refers to the last version (can be last_version_gentoo or last_version_overlay)
+ Fix update_counter, to update this field.
-### djportage
+### djportage (LOW-PRIORITY))
- Create standalone application to scan and represent portage trees in models using work done in:
-- euscan
@@ -87,9 +97,11 @@ The scan process should be faster than the one using euscan. gentoo-packages hav
### Scanning
- Remove alive field
-- Find a way to rescan upstream of packages recently changed in portage
+- Find a way to rescan upstream of packages recently changed in portage:
+ - make scan_portage/scan_upstream return a list of packages that were updated (or list of versions ?)
+ - use that list in tasks.py as scan_upstream (should be easy using chains and subtasks)
-### API
+### API (LOW-PRIORITY)
- Move to tastypie