message(paste('N: using Debian package of',dep))
next
}
- message(paste('N: uploading',dep))
+ # otherwise, convert to source package name
+ srcdep = pkgname.as.debian(dep,binary=F)
+
+ message(paste('N: uploading',srcdep))
ret = system(paste('umask 022;dput','-c',shQuote(dput_config),'local'
- ,changesfile(dep)))
+ ,changesfile(srcdep)))
if (ret != 0) {
stop('upload of dependency failed! maybe you did not build it first?')
}
#!/usr/bin/env rc
-for (ctv in `{./cranpkgs query}) {
+for (ctv in `{cran2deb cran_pkgs query}) {
echo task view $ctv...
if (![ -e ctv/$ctv ]) {
- ./build_some $ctv
+ cran2deb build_some $ctv
mkdir -p ctv/$ctv
mv warn fail ctv/$ctv
}
#!/usr/bin/rc
mkdir -p warn fail
-./cranpkgs $* >all_pkgs
+shift
+cran2deb cran_pkgs $* >all_pkgs
for (pkg in `{cat all_pkgs}) {
if (~ $pkg *..* */*) {
echo bad name $pkg >>fail/ERROR
} else {
echo .. package $pkg
fail=0
- ./cran2deb $pkg >fail/$pkg >[2=1] || fail=1
+ cran2deb build $pkg >fail/$pkg >[2=1] || fail=1
if (~ $fail 0) {
grep '^[WE]:' fail/$pkg >warn/$pkg
if (~ `{stat -c '%s' warn/$pkg} 0) {
library(cran2deb)
-if (length(argv) == 0) {
+if (length(argv) == 1) {
writeLines(sample(dimnames(available)[[1]],800))
#writeLines(dimnames(available)[[1]])
} else {
+ argv = argv[2:length(argv)]
if (argv[1] == 'query') {
for (ctv in ctv.available) {
writeLines(ctv$name)