Package: svn-buildpackage
Version: 0.6.14
Severity: wishlist

I am attaching the location of the tarball to the trunk dir:

  piper:~/debian/pkg/gjay/trunk> svn propget tarball-url
  
http://puzzle.dl.sourceforge.net/sourceforge/${package}/${package}-{upstream_version}.tar.gz

and then use the following function (see also #377411):

_svn_buildpackage_helper () {
  local prebuild postbuild pretag posttag args cmd
  for i in {pre,post}{build,tag}
  do
    cmd="$(svn propget svn-$i .)" 
    [ -z "$cmd" ] && continue
    args="${args:+ $args}--svn-$i='$cmd'" 
  done
  local upstream_tarball
  upstream_tarball="$(svn propget tarball-url .)" 
  if [ -n "$upstream_tarball" ]
  then
    cmd='wget -cO ../${package}_${upstream_version}.orig.tar.gz' 
    cmd="$cmd $upstream_tarball" 
    args="${args:+ $args}--svn-prebuild='$cmd'" 
  fi
  eval svn-buildpackage $args $@
}

This has the effect to always download the tarball to .. (see
#377405) if the property is set.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.16-2-xen-amd64-k8
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages svn-buildpackage depends on:
ii  devscripts                    2.9.20     Scripts to make the life of a Debi
ii  libsvn-core-perl              1.3.2-3    perl bindings for Subversion (aka.
ii  perl                          5.8.8-6    Larry Wall's Practical Extraction 
ii  subversion                    1.3.2-3    advanced version control system (a
ii  subversion-tools              1.3.2-3    assorted tools related to Subversi

svn-buildpackage recommends no packages.

-- no debconf information

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`.     martin f. krafft <[EMAIL PROTECTED]>
: :'  :    proud Debian developer and author: http://debiansystem.info
`. `'`
  `-  Debian - when you have better things to do than fixing a system

Attachment: signature.asc
Description: Digital signature (GPG/PGP)

Reply via email to