[jhbuild/jhdebuild: 515/536] [jhdebuild] Add vcs type property



commit 3e3f636cb84acd4d5fc273db6ecfb0b3dd9a7839
Author: Frederic Peters <fpeters 0d be>
Date:   Sun May 17 13:45:28 2009 +0100

    [jhdebuild] Add vcs type property
---
 jhbuild/versioncontrol/svn.py     |    1 +
 jhbuild/versioncontrol/tarball.py |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/jhbuild/versioncontrol/svn.py b/jhbuild/versioncontrol/svn.py
index 65c36a9..62d104e 100644
--- a/jhbuild/versioncontrol/svn.py
+++ b/jhbuild/versioncontrol/svn.py
@@ -102,6 +102,7 @@ def get_uri(filename):
 
 class SubversionRepository(Repository):
     """A class used to work with a Subversion repository"""
+    code = 'svn'
 
     init_xml_attrs = ['href', 'trunk-template', 'branches-template', 'tags-template']
 
diff --git a/jhbuild/versioncontrol/tarball.py b/jhbuild/versioncontrol/tarball.py
index 196df8f..e02b708 100644
--- a/jhbuild/versioncontrol/tarball.py
+++ b/jhbuild/versioncontrol/tarball.py
@@ -48,6 +48,7 @@ class TarballRepository(Repository):
     implementations.
     """
 
+    code = 'tarball'
     init_xml_attrs = ['href']
 
     def __init__(self, config, name, href):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]