From b8a9a6b139bdf3e66a5ff606d4911637a94cba04 Mon Sep 17 00:00:00 2001 From: randomdan Date: Tue, 14 Dec 2010 00:49:50 +0000 Subject: Only URL like URLs Update package masks after import Delete file never executed --- gentoobrowse/console/packagefileimport.xml | 8 -------- gentoobrowse/console/packageimport.xml | 15 +++++++++------ 2 files changed, 9 insertions(+), 14 deletions(-) delete mode 100644 gentoobrowse/console/packagefileimport.xml diff --git a/gentoobrowse/console/packagefileimport.xml b/gentoobrowse/console/packagefileimport.xml deleted file mode 100644 index 99cd60a..0000000 --- a/gentoobrowse/console/packagefileimport.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - diff --git a/gentoobrowse/console/packageimport.xml b/gentoobrowse/console/packageimport.xml index fbfb25b..8e281ef 100644 --- a/gentoobrowse/console/packageimport.xml +++ b/gentoobrowse/console/packageimport.xml @@ -90,12 +90,14 @@ - SELECT DISTINCT e.packageid, REGEXP_SPLIT_TO_TABLE(fc.content, ' ') AS url - FROM filecache fc, ebuilds e, files f - WHERE fc.line = 6 - AND fc.fileid = e.ebuildid - AND fc.fileid = f.fileid - AND filetypeid = 1 + SELECT packageid, url FROM ( + SELECT DISTINCT e.packageid, REGEXP_SPLIT_TO_TABLE(fc.content, ' ') AS url + FROM filecache fc, ebuilds e, files f + WHERE fc.line = 6 + AND fc.fileid = e.ebuildid + AND fc.fileid = f.fileid + AND filetypeid = 1) AS u + WHERE url LIKE '%://%' packageid @@ -209,5 +211,6 @@ + -- cgit v1.2.3