Public bug reported: bad description, but I have a example data and test.
See the attached file, but we call 'util.products_condense' on the products data and it doesnt seem to move up some of the fields. I'd expect for most of the fields not marked sticky to bubble up. Note, that sticky=None or sticky=[some, list] doesn't seem to be breaking it (ie, sticky=None still shows it). Heres the test program: #!/usr/bin/python from simplestreams import util import sys, copy STICKY = ['ftype', 'md5', 'sha256', 'size', 'name', 'id'] STICKY = None data = util.load_content(open(sys.argv[1], "r").read()) orig_data = copy.deepcopy(data) util.products_condense(data, sticky=STICKY) sys.stdout.write(util.dump_data(data)) sys.stdout.write("\n") ProblemType: Bug DistroRelease: Ubuntu 14.10 Package: python-simplestreams 0.1.0~bzr341-0ubuntu1 ProcVersionSignature: Ubuntu 3.15.0-5.10-generic 3.15.0-rc8 Uname: Linux 3.15.0-5-generic x86_64 ApportVersion: 2.14.3-0ubuntu1 Architecture: amd64 CurrentDesktop: Unity Date: Mon Jun 9 09:09:33 2014 EcryptfsInUse: Yes InstallationDate: Installed on 2011-10-19 (963 days ago) InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012) PackageArchitecture: all SourcePackage: simplestreams UpgradeStatus: Upgraded to utopic on 2013-05-20 (385 days ago) ** Affects: simplestreams (Ubuntu) Importance: Medium Status: Confirmed ** Tags: amd64 apport-bug utopic ** Attachment added: "example products created by glance mirror (trimmed)" https://bugs.launchpad.net/bugs/1328100/+attachment/4128192/+files/orig.json -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to simplestreams in Ubuntu. https://bugs.launchpad.net/bugs/1328100 Title: products_condense doesnt seem to work as desired To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/simplestreams/+bug/1328100/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs