]> git.donarmstrong.com Git - cran2deb.git/commitdiff
Knowing how to interpret rforge and omegahat, too.
authormoeller <moeller@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Tue, 8 Feb 2011 17:29:17 +0000 (17:29 +0000)
committermoeller <moeller@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Tue, 8 Feb 2011 17:29:17 +0000 (17:29 +0000)
git-svn-id: svn://svn.r-forge.r-project.org/svnroot/cran2deb@341 edb9625f-4e0d-4859-8d74-9fd3b1da38cb

trunk/R/debiannaming.R

index 7e07c9e6c40f2eeac4d3e03d41f4ff629163eaac..8d11be33b1bdb2f81d50c3590ad6a9e21b48d921 100644 (file)
@@ -2,9 +2,12 @@ repourl_as_debian <- function(url) {
     # map the url to a repository onto its name in debian package naming
     if (length(grep('cran',url))) {
         return('cran')
-    }
-    if (length(grep('bioc',url))) {
+    } else if (length(grep('bioc',url))) {
         return('bioc')
+    } else if (length(grep('omegahat',url))) {
+        return('omegahat')
+    } else if (length(grep('rforge',url))) {
+        return('rforge')
     }
     fail('unknown repository',url)
 }