kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] KVM test: Fixing kvm release tag detection
@ 2009-07-06  0:57 Lucas Meneghel Rodrigues
  2009-07-06 15:21 ` Lucas Meneghel Rodrigues
  0 siblings, 1 reply; 2+ messages in thread
From: Lucas Meneghel Rodrigues @ 2009-07-06  0:57 UTC (permalink / raw)
  To: autotest; +Cc: kvm, Lucas Meneghel Rodrigues

The recent sourceforge facelift/changes broke our ability to determine
KVM release tags. This patch fixes up things.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
---
 client/tests/kvm/kvm_utils.py |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/client/tests/kvm/kvm_utils.py b/client/tests/kvm/kvm_utils.py
index a37d322..b2b0d1a 100644
--- a/client/tests/kvm/kvm_utils.py
+++ b/client/tests/kvm/kvm_utils.py
@@ -139,13 +139,9 @@ def get_latest_kvm_release_tag(release_dir):
         f = open(local_web_page, "r")
         data = f.read()
         f.close()
-        rx = re.compile("package_id=(\d+).*\>kvm\<", re.IGNORECASE)
+        rx = re.compile("kvm-(\d+).tar.gz", re.IGNORECASE)
         matches = rx.findall(data)
         package_id = matches[0]
-        #package_id = 209008
-        rx = re.compile("package_id=%s.*release_id=\d+\">(\d+)" % package_id, 
-                        re.IGNORECASE)
-        matches = rx.findall(data)
         return matches[0] # the first match contains the latest release tag
     except Exception, e:
         message = "Could not fetch latest KVM release tag: %s" % str(e)
-- 
1.6.2.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] KVM test: Fixing kvm release tag detection
  2009-07-06  0:57 [PATCH] KVM test: Fixing kvm release tag detection Lucas Meneghel Rodrigues
@ 2009-07-06 15:21 ` Lucas Meneghel Rodrigues
  0 siblings, 0 replies; 2+ messages in thread
From: Lucas Meneghel Rodrigues @ 2009-07-06 15:21 UTC (permalink / raw)
  To: autotest; +Cc: kvm

On Sun, 2009-07-05 at 21:57 -0300, Lucas Meneghel Rodrigues wrote:
> The recent sourceforge facelift/changes broke our ability to determine
> KVM release tags. This patch fixes up things.

Applied.

> Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
> ---
>  client/tests/kvm/kvm_utils.py |    6 +-----
>  1 files changed, 1 insertions(+), 5 deletions(-)
> 
> diff --git a/client/tests/kvm/kvm_utils.py b/client/tests/kvm/kvm_utils.py
> index a37d322..b2b0d1a 100644
> --- a/client/tests/kvm/kvm_utils.py
> +++ b/client/tests/kvm/kvm_utils.py
> @@ -139,13 +139,9 @@ def get_latest_kvm_release_tag(release_dir):
>          f = open(local_web_page, "r")
>          data = f.read()
>          f.close()
> -        rx = re.compile("package_id=(\d+).*\>kvm\<", re.IGNORECASE)
> +        rx = re.compile("kvm-(\d+).tar.gz", re.IGNORECASE)
>          matches = rx.findall(data)
>          package_id = matches[0]
> -        #package_id = 209008
> -        rx = re.compile("package_id=%s.*release_id=\d+\">(\d+)" % package_id, 
> -                        re.IGNORECASE)
> -        matches = rx.findall(data)
>          return matches[0] # the first match contains the latest release tag
>      except Exception, e:
>          message = "Could not fetch latest KVM release tag: %s" % str(e)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-06 15:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-06  0:57 [PATCH] KVM test: Fixing kvm release tag detection Lucas Meneghel Rodrigues
2009-07-06 15:21 ` Lucas Meneghel Rodrigues

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).