Current linaro-android-media-create has an unnecessary dependency on debian.debfile

Bug #1081747 reported by Bernhard Rosenkraenzer
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linaro Image Tools
Fix Released
Medium
Milo Casagrande

Bug Description

Android doesn't have a need to parse deb files -- but currently, linaro-android-media-create on a box that doesn't have the tools for deb file handling installed results in

Traceback (most recent call last):
  File "./linaro-android-media-create", line 28, in <module>
    from linaro_image_tools.media_create.android_boards import (
  File "/home/bero/linaro-image-tools-2012.10/linaro_image_tools/media_create/__init__.py", line 25, in <module>
    from linaro_image_tools.media_create.boards import board_configs
  File "/home/bero/linaro-image-tools-2012.10/linaro_image_tools/media_create/boards.py", line 40, in <module>
    from linaro_image_tools.hwpack.builder import PackageUnpacker
  File "/home/bero/linaro-image-tools-2012.10/linaro_image_tools/hwpack/builder.py", line 30, in <module>
    from debian.debfile import DebFile
ImportError: No module named debian.debfile

This makes it unnecessarily complicated to work with linaro-android-media-create on systems that aren't Debian based.

Related branches

Milo Casagrande (milo)
Changed in linaro-image-tools:
assignee: nobody → Milo Casagrande (milo)
milestone: none → 2013.06
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Milo Casagrande (milo) wrote :

Obviously we cannot remove the package dependency on python-debian, but it should be possible to refactor the code so that at least that part should be usable on non-Debian distro (using l-i-t from source code). It might involve a little bit of moving things around.

Milo Casagrande (milo)
Changed in linaro-image-tools:
status: Confirmed → In Progress
Revision history for this message
Milo Casagrande (milo) wrote :

The linked branch should solve this problem when using l-i-t from source. I only tested launching 'linaro-android-media-create' from the command line, not yet with a full execution.

Milo Casagrande (milo)
Changed in linaro-image-tools:
status: In Progress → Fix Committed
Milo Casagrande (milo)
Changed in linaro-image-tools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.