Testing package imports locally

John Arbash Meinel john at arbash-meinel.com
Wed Feb 17 17:30:45 GMT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Collins wrote:
> On Tue, 2010-02-16 at 17:14 -0600, John Arbash Meinel wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> I've been wanting to get into handling some of the bugs with the package
>> importer, such as:
>>   https://bugs.edge.launchpad.net/udd/+bug/508251
>>
>> However, I really don't know a way to run the package importing
>> manually. I can write unit tests, but without running a real import, I
>> can't be sure that my assumptions are valid.
>>
>> So how does one go about setting up a local package importer. Or can we
>> set something up somewhere like tungsten/chinstrap/devpad/etc so all of
>> us have a sandbox that we can go play in.
> 
> See the attached message from this list back in december. There is more
> to the thread :)
> 
> -Rob

Thanks, I had forgotten about this one. (Though to be fair, so had
Martin when I talked to him about setting this up.)

Also, the rest of the thread is not about local imports, so not
particularly helpful.

When I tried it on 'gnome-panel' it had this error:
54.204  Traceback (most recent call last):
  File "./import_package.py", line 769, in main
    assert len(versions.plist) > 0
  File "./import_package.py", line 211, in get_versions
    publications = icommon.lp_call(icommon.call_with_limited_size,
  File "./import_package.py", line 172, in get_debian_versions
    output, errout = proc.communicate()
  File "/usr/lib/python2.6/subprocess.py", line 621, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1126, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory


Looking at the code, it seems we also depend on 'madison-lite' being
installed. Also, I ran into some bugs wrt not installing
'trace.enable_default_logging()' which meant it wasn't able to tell me
what was failing when a plugin failed to load.

I'll submit some small patches that should help this a little bit at least.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkt8J8UACgkQJdeBCYSNAAObOwCdHahUug1u8AwtMCS7IwEUcZB/
FfUAn1PPh7VkA/cGlSd0M5h4+pv7hUQb
=vePF
-----END PGP SIGNATURE-----



More information about the ubuntu-distributed-devel mailing list