You are not logged in.

#1 2006-11-11 15:02:24

meow
Member
Registered: 2006-07-31
Posts: 7

How to download a single file from abs cvs (community)?

As a little edit of soloport's ingenious script for downloading single packages/directories from ABS instead of downloading everything, this is absget.

#!/bin/bash
# Downloads a single package from CVS CURRENT (much like ABS)
# Requires one or two arguments, one which specifes the CVS path (e.g. kernels/kernel26)
# and the other who specifies the repository (defaults to "arch")
# Creates a local DIR, for example, where DIR=kernel26 in kernels/kernel26
if [ "$BASH_ARGC" ]; then
  [ "$2" ] && REPOS="$2" || REPOS="arch"
  export CVSROOT=:pserver:anonymous:anonymous@cvs.archlinux.org:/home/cvs-$REPOS
  DIR="$1"
  declare -a ARY
  declare -i NUM
  ARY=( `echo $DIR | sed 's/// /g'` )
  NUM=${#ARY[*]}-1
  PKG=${ARY[$NUM]}
  echo DIR="$DIR", PKG="$PKG", REPOS="$REPOS"
  [ "$REPOS" = "arch" ] && cvs -z3 co -r CURRENT -d $PKG arch/build/$DIR
  [ "$REPOS" = "extra" ] && cvs -z3 co -r CURRENT -d $PKG extra/$DIR
  [ "$REPOS" = "unstable" ] && cvs -z3 co -r CURRENT -d $PKG unstable/$DIR
  rm CVS CVSROOT -R 2>/dev/null
  exit 0
else
  echo "not enough arguments"
  exit 1
fi

As you maybe can see, it's missing a line for community. Whenever I try to test this method with the community dir (/home/cvs-community) I get this error:

$ export CVSROOT=:pserver:anonymous:anonymous@cvs.archlinux.org:/home/cvs-community
$ cvs -z3 co .              
no such user anonymous in CVSROOT/passwd

cvs seems to authenticate in a different way than cvsup does, I've tried for hours to get this working (even with the help of wireshark), but with no luck. Can anyone help?

Offline

#2 2006-11-12 11:31:47

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: How to download a single file from abs cvs (community)?

very promising script big_smile

Offline

#3 2006-11-25 02:03:04

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: How to download a single file from abs cvs (community)?

Moved from "User Contributions".

Offline

#4 2006-11-25 12:50:36

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: How to download a single file from abs cvs (community)?

This could be a hint: http://cvs.archlinux.org/cgi-bin/viewcv … vsroot=AUR (not "Community")


1000

Offline

#5 2006-11-25 14:09:30

meow
Member
Registered: 2006-07-31
Posts: 7

Re: How to download a single file from abs cvs (community)?

byte wrote:

This could be a hint: http://cvs.archlinux.org/cgi-bin/viewcv … vsroot=AUR (not "Community")

yes, but I don't know how  to access it without using abs or viewcvs

Offline

#6 2006-11-25 14:37:22

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: How to download a single file from abs cvs (community)?

meow wrote:

yes, but I don't know how  to access it without using abs or viewcvs

I suppose you should ask CVS maintainer to allow anonymous access to Community repo too.  :?


to live is to die

Offline

#7 2006-11-25 15:07:28

meow
Member
Registered: 2006-07-31
Posts: 7

Re: How to download a single file from abs cvs (community)?

Romashka wrote:

I suppose you should ask CVS maintainer to allow anonymous access to Community repo too.  :?

Maybe you're right, but if abs (cvsup) does not connect as anonymous, what kind of authentication does it do to get the files then?

Offline

Board footer

Powered by FluxBB