Package: tla-buildpackage
Version: 0.9.9
Severity: grave
Justification: renders package unusable

Most commands fail with something like:

Traceback (most recent call last):
  File "/usr/bin/tbp-importdsc", line 38, in ?
    tbpimport.importdsc(dscname)
(...)
  File "/usr/lib/python2.3/site-packages/tbppy/configs.py", line 38, in 
makepkgconfigifneeded
    extcmd.run('tla %s configs/%s/%s' % (' '.join(cmd().add),
  File "/usr/lib/python2.3/site-packages/tla_support/commandver.py", line 113, 
in cmd
    gettlasyntax()
  File "/usr/lib/python2.3/site-packages/tla_support/commandver.py", line 49, 
in gettlasyntax
    elif util.getstdoutsafeexec(tlacmd, ['-V'])[0].find('tla-1.0.') != -1:
  File "/usr/lib/python2.3/site-packages/tla_support/util.py", line 71, in 
getstdoutsafeexec
    pid = mainexec(program, args, child_stdout = pipes[1], wait  = 0)
  File "/usr/lib/python2.3/site-packages/tla_support/util.py", line 52, in 
mainexec
    os.execvp(program, (program,) + tuple(args))
  File "/usr/lib/python2.3/os.py", line 336, in execvp
    _execvpe(file, args)
  File "/usr/lib/python2.3/os.py", line 360, in _execvpe
    head, tail = path.split(file)
  File "/usr/lib/python2.3/posixpath.py", line 77, in split
    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'


The problem is that tla-load-dirs now needs to be initialised to tell
it what VCS is being used (tla, baz or darcs). As a matter of example,
a patch for tbp-initarchive is attached.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-amd64-k8-smp
Locale: LANG=fr_LU.UTF-8, LC_CTYPE=fr_LU.UTF-8 (charmap=UTF-8)

Versions of packages tla-buildpackage depends on:
ii  devscripts                    2.9.15     Scripts to make the life of a Debi
ii  dpkg-dev                      1.13.16    package building tools for Debian
ii  python-apt                    0.6.16.1   Python interface to libapt-pkg
ii  python2.3                     2.3.5-9    An interactive high-level object-o
ii  tla                           1.3.3-3    arch revision control system
ii  tla-load-dirs                 1.0.28     Import upstream archives into tla/

tla-buildpackage recommends no packages.

-- no debconf information
--- /usr/bin/tbp-initarchive    2005-06-21 15:17:10.000000000 +0200
+++ tbp-initarchive     2006-03-22 08:14:07.562934583 +0100
@@ -20,6 +20,7 @@
 import os, sys
 from tbppy import tla, extcmd
 from tla_support.commandver import cmd
+from tla_support import commandver
 
 def printhelp():
     print """Usage:
@@ -42,6 +43,8 @@
 if len(sys.argv) < 4:
     syntax()
 
+commandver.setscm("tla")
+
 progname, ARCHIVENAME, ARCHIVELOC, WCLOC = sys.argv
 CONFIGVER = "%s/configs--head--1.0" % ARCHIVENAME
 if os.path.exists(ARCHIVELOC):

Reply via email to