You are not logged in.

#1 2009-07-31 15:05:16

Coacher
Guest

Unable to download 'core' and 'extra' via ABS.

Hello. I've installed abs (pacman -Sy abs) and rsync as a dependence for it.
Now, after # abs, I stiil haven't core and extra directories in /var/abs.
Here is /etc/abs.conf

#
# /etc/abs.conf
#

# the top-level directory of all your PKGBUILDs
[ "$ABSROOT" = "" ] && ABSROOT="/var/abs/"

#
# Server to sync from
# 
SYNCSERVER="rsync.archlinux.org"

#
# The architecture to fetch abs for
# Either i686 or x86_64
#
ARCH="i686"

#
# Pacman mirror list used for syncing via tarball
#
MIRRORLIST="/etc/pacman.d/mirrorlist"

#
# REPOS to be parsed by abs (in this order)
#   (prefix a repo with a ! to disable it)
#
# Note: If a repo is removed, it is still fetched!
# Repos must be preceded with a ! to prevent fetching
#
REPOS=(core extra !community !testing)

I can't realize where is the problem, need help.

#2 2009-07-31 15:11:39

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Offline

#3 2009-07-31 15:27:32

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: Unable to download 'core' and 'extra' via ABS.

Thank you for the bug report links.

I use the pacbuilder-svn for upgrading from ABS/AUR, and I thought that one of my recent updates had changed something to make pacbuilder unable to pull from the abs. I had no idea my abs folders had been deleted.

Thanks again.

Offline

#4 2009-07-31 15:47:09

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: Unable to download 'core' and 'extra' via ABS.

Fixed now.

Offline

#5 2009-07-31 16:07:23

Coacher
Guest

Re: Unable to download 'core' and 'extra' via ABS.

Thanks for fast answer and fixing this issue, Allan.

#6 2009-08-01 04:27:40

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: Unable to download 'core' and 'extra' via ABS.

I'm still having this problem with pacbuilder not being able to pull the 'community' packages from the ABS tree. (I can do do it manually but that ruins the ease of using pacbuilder instead of pacman) 

The 'core' packages and the 'extra' extra packages from the ABS tree build like normal when using pacbuilder.

Last edited by methuselah (2009-08-01 04:31:27)

Offline

#7 2009-08-01 05:11:21

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: Unable to download 'core' and 'extra' via ABS.

Pacbuilder will probably need updated due to the CVS -> SVN switch for community changing the ABS tree a bit for community packages.  It used to be /var/abs/community/<category>/<package> but not the <category>s have been removed.

Offline

#8 2009-08-01 18:37:28

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: Unable to download 'core' and 'extra' via ABS.

Allan wrote:

Pacbuilder will probably need updated due to the CVS -> SVN switch for community changing the ABS tree a bit for community packages.  It used to be /var/abs/community/<category>/<package> but not the <category>s have been removed.

Thanks. I'll be patient, or I guess I could try to edit pacbuilder in /usr/bin with the new changes.

EDITED. I think it might be one of these 2 parts, probably the second part with the PKGBUILDS


1st.

function get_community_category()
{
  AUR_ID=`wget -q -O - "http://aur.archlinux.org/rpc.php?type=info&arg=${1}" \
          | sed -e 's/^.*{"ID":"//' -e 's/",".*$//' \
          | sed '/^$/d'`
  CATEGORY=`wget -q -O - "http://aur.archlinux.org/packages.php?ID=${AUR_ID}" \
            | grep 'community ::' \
            | sed 's|<[^<]*>||g' \
            | awk '{print $3}'`
  echo $CATEGORY
}

2nd.

function get_pkgbuild()
{
  get_pkg_repo ${1}
  if [ "$REPO" != "aur" ]; then
    [ "$REPO" == "community" ] && REPO=${REPO}/`get_community_category ${1}`
    abs; cp -rf /var/abs/${REPO}/${1} ${BUILD_DIR}
    $SYNCCMD $SYNCARGS ${SYNCSERVER}::abs/x86_64/${REPO}/${1} ${BUILD_DIR}
    if [ ! -f ${BUILD_DIR}/${1}/PKGBUILD ]; then
      REPO="aur"
    fi
  fi
  if [ "$REPO" == "aur" ]; then
    cd $BUILD_DIR
    wget http://aur.archlinux.org/packages/${1}/${1}.tar.gz || return 1
    tar xfz ./${1}.tar.gz
    rm -rf ./${1}.tar.gz
  fi
  cd ${BUILD_DIR}/${1}
  return 0
}

Thanks again.

Last edited by methuselah (2009-08-01 20:58:21)

Offline

#9 2009-08-01 20:36:16

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: Unable to download 'core' and 'extra' via ABS.

Okay, it seems that pacbuilder has community packages in the list that it creates before upgrading, but it can't grab them from my /var/abs/community for some reason. I messed around with the script by editing out the "_category" part but that didn't help at all.

I guess I'll just be patient and wait for somebody else to fix it. Maybe I should try Yaourt out since it looks like it I can do the same thing by upgrading with the abs/aur.

Offline

#10 2009-08-02 02:10:08

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: Unable to download 'core' and 'extra' via ABS.

Probably just remove this line.

[ "$REPO" == "community" ] && REPO=${REPO}/`get_community_category ${1}`

Offline

#11 2009-08-02 03:22:06

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: Unable to download 'core' and 'extra' via ABS.

Allan wrote:

Probably just remove this line.

[ "$REPO" == "community" ] && REPO=${REPO}/`get_community_category ${1}`

Yes, that worked perfectly. Thank you.

Offline

Board footer

Powered by FluxBB