linaro-hwpack-replace only replace same name deb pkg but in fact it needs a smart match

Bug #816767 reported by Spring Zhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Image Tools
Fix Released
Medium
Deepti B. Kalakeri

Bug Description

If using a something old deb package to replace to a new hwpack, and the deb package name is different, the package will add to hwpack directly, so that l-m-c can't determine which package is to be installed in later hwpack installation.

e.g.
A hwpack contains a image deb named linux-image-2.6.38-1002-linaro-mx51_2.6.38-1002.3_armel.deb, now I need to replace it to a new deb linux-image-2.6.38-1003-linaro-mx51_2.6.38-1003.4~ppa6_armel.deb, after running l-h-r, new deb will add to hwpack but old deb also exists.

The right action is to delete old deb and add new deb.

We have name rule for all deb names, [deb name]_[vesion], l-h-r needs a smart match to deb name and replace the right deb package.

Revision history for this message
James Westby (james-w) wrote :

Hi Deepti,

Do you want to tackle this bug?

I imagine that we want to be able to specify a pattern to remove:

  linaro-hwpack-replace --hwpack-name some-hwpack --deb_pack some-package --remove linux-image-*

Or similar, what do you think?

I don't know if the python "glob" module can decide if a name matches the "*" there, or whether
that only works against files on disk.

Thanks,

James

Changed in linaro-image-tools:
status: New → In Progress
status: In Progress → Triaged
importance: Undecided → Medium
assignee: nobody → Deepti B. Kalakeri (deeptik)
Revision history for this message
Deepti B. Kalakeri (deeptik) wrote :

Hello James,

I will look at it.

Thanks!!
Deepti.

Changed in linaro-image-tools:
milestone: none → 2011.07
status: Triaged → 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.