Parcourir la source

add support for darcs-based feeds

The following patch adds support for darcs-based feeds.
It is tested and works well for my purpose.  I wish it
were committed upstream so that I can share my feed with
other users without converting it to svn/git/whatever.

Best regards,

Signed-off-by: Gabriel Kerneis <[email protected]>

SVN-Revision: 23616
Florian Fainelli il y a 15 ans
Parent
commit
0d74b45467
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6 1
      scripts/feeds

+ 6 - 1
scripts/feeds

@@ -123,7 +123,11 @@ my %update_method = (
 	'src-hg' => {
 		'init'		=> "hg clone '%s' '%s'",
 		'update'	=> "hg pull --update",
-		'controldir'	=> ".hg"}
+		'controldir'	=> ".hg"},
+	'src-darcs' => {
+		'init'    => "darcs get '%s' '%s'",
+		'update'  => "darcs pull -a",
+		'controldir' => "_darcs"},
 );
 
 # src-git: pull broken
@@ -278,6 +282,7 @@ my %install_method = (
 	'src-git' => \&install_generic,
 	'src-bzr' => \&install_generic,
 	'src-hg' => \&install_generic,
+	'src-darcs' => \&install_generic,
 );
 
 my %feed;