Bug 412591

Summary: yast2 addon creator creates inconsistent metadata
Product: [openSUSE] openSUSE 11.0 Reporter: Jigish Gohil <cyberorg>
Component: YaST2Assignee: Jiří Suchomel <jsuchome>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: mvidner
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2log

Description Jigish Gohil 2008-07-28 11:04:42 UTC
After creating addon iso, changing anything and recreating iso results in inconsistent metadata.

Here are the sha1sum of the rpm packages in the iso and the ones listed in suse/setup/descr/packages

http://pastebin.com/f1c7102f1
Comment 1 Martin Vidner 2008-07-28 11:20:09 UTC
It is not changing "anything". It happens when you add/change an RPM while YaST is running and click Create product. The metadata are not recreated.
Comment 2 Jigish Gohil 2008-07-28 11:23:24 UTC
Created attachment 230247 [details]
y2log

logs from the following procedure:

1 start yast addon creator
2 build image
3 start sw_single remove old repo exit
4 start sw_single, add new repo
5 select pattern and try to install - errors
Comment 3 Martin Vidner 2008-07-28 12:37:47 UTC
After some debugging, I discovered that add-on-creator has an option to sign the RPMs. The problem is that it does so *after* generating the metadata and thus it makes the RPM checksums invalid. Signing RPMs and the metadata should be separated to prevent this.
A workaround is to sign the RPMs beforehand outside add-on-creator.

BTW the logs should be more verbose so that I could see all this from them alone ;-)
Comment 4 Jiří Suchomel 2008-08-01 11:23:49 UTC
Hm, it probably won't be that easy, create_package_descr is run at the start...
Comment 5 Jiří Suchomel 2008-08-05 11:04:33 UTC
Fixed in yast2-add-on-creator-2.17.3 for next release.
For 11.0, fixed version is  yast2-add-on-creator-2.16.14 and can be found at http://download.opensuse.org/repositories/home:/jsuchome/openSUSE_11.0/noarch/
Comment 9 Anja Stock 2008-08-07 09:53:25 UTC
released