Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix breakage in b46abb3, and artifact-version: 216.15.1 | Paul Sherwood | 2016-04-11 | 1 | -6/+6 |
| | |||||
* | Partial fix for #202 - add cache-key to .meta | Paul Sherwood | 2016-04-09 | 1 | -4/+8 |
| | |||||
* | Fix pep8 issues16.11 | Paul Sherwood | 2016-03-13 | 1 | -5/+6 |
| | |||||
* | Fix artifact splitting regressions | Richard Dale | 2016-03-04 | 1 | -17/+21 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The recent change in the artifact splitting regular expression matching code doesn't work. For example, the splitting rules for the syslinux chunk have a pattern to match files in /usr/share/syslinux/com32* and add them to the syslinux-devel component. The split rules and default rules for that chunk look like this: split rules: [{'include': ['(usr/)?share/syslinux/com32.*'], 'artifact': 'syslinux-devel'}] default rules: [{'include': ['(usr/)?s?bin/.*'], 'artifact': '-bins'}, {'include': ['(usr/)?lib(32|64)?/lib[^/]*\\.so(\\.\\d+)*', '(usr/)libexec/.*'], 'artifact': '-libs'}, {'include': ['(usr/)?include/.*', '(usr/)?lib(32|64)?/lib.*\\.a', '(usr/)?lib(32|64)?/lib.*\\.la', '(usr/)?(lib(32|64)?|share)/pkgconfig/.*\\.pc'], 'artifact': '-devel'}, {'include': ['(usr/)?share/doc/.*', '(usr/)?share/man/.*', '(usr/)?share/info/.*'], ' artifact': '-doc'}, {'include': ['(usr/)?share/locale/.*', '(usr/)?share/i18n/.*', '(usr/)?share/zoneinfo/.*'], 'artifact': '-locale'}, {'include': ['.*'], 'artifact': '-misc'}] The OrderDict code in splitting.compile_rules() drops the /usr/share/syslinux/com32* pattern: rules = OrderedDict((component['name'] + a if a.startswith('-') else a, re.compile('^(?:%s)$' % '|'.join(r))) for a, r in match_rules.iteritems()) If a key for an artifact, such as 'syslinux-devel', already exists in the OrderedDict it is just overwritten and lost when the next 'syslinux-devel' entry is added. The fix is to revert to using an array of artifact name/regular expression pairs as before. | ||||
* | Fix copyright year | Paul Sherwood | 2016-02-27 | 1 | -1/+1 |
| | |||||
* | Split out write_metafile function | Paul Sherwood | 2016-02-27 | 1 | -11/+15 |
| | |||||
* | No need for chdir | Paul Sherwood | 2016-02-27 | 1 | -1/+1 |
| | |||||
* | Rename regexps => rules, and move logic to compile_rules | Paul Sherwood | 2016-02-27 | 1 | -24/+16 |
| | |||||
* | Split out compile_regexps function | Paul Sherwood | 2016-02-27 | 1 | -17/+14 |
| | |||||
* | Pep8 | Paul Sherwood | 2016-02-27 | 1 | -17/+17 |
| | |||||
* | get_metadata requires definition, not path | Paul Sherwood | 2016-02-27 | 1 | -2/+2 |
| | |||||
* | WIP - report where the overlaps are | Paul Sherwood | 2016-02-27 | 1 | -4/+11 |
| | |||||
* | Only report overlaps once | Paul Sherwood | 2016-02-27 | 1 | -0/+15 |
| | |||||
* | Missed bracket | Paul Sherwood | 2016-02-25 | 1 | -1/+1 |
| | |||||
* | Dictionary notation | Dan Firth | 2016-02-24 | 1 | -18/+12 |
| | |||||
* | Replace mark_used_path with lambda expression | Dan Firth | 2016-02-24 | 1 | -10/+2 |
| | |||||
* | Use OSFS to walkdirs | Dan Firth | 2016-02-24 | 1 | -19/+16 |
| | |||||
* | Use OrderedDict comprehension | Dan Firth | 2016-02-24 | 1 | -24/+19 |
| | |||||
* | Use OrderedDict for regexps | Dan Firth | 2016-02-24 | 1 | -9/+10 |
| | |||||
* | Chunk products is an array, not a dict | Dan Firth | 2016-02-24 | 1 | -22/+22 |
| | |||||
* | Remove unused import | Paul Sherwood | 2016-02-18 | 1 | -1/+1 |
| | |||||
* | Eek - medata => metadata | Paul Sherwood | 2016-02-13 | 1 | -1/+1 |
| | |||||
* | Shuffle metadata logic a bit | Paul Sherwood | 2016-02-13 | 1 | -1/+9 |
| | |||||
* | Move splitting.load_metafile() => cache.get_metadata() | Paul Sherwood | 2016-02-13 | 1 | -23/+3 |
| | |||||
* | Remove a few lines | Paul Sherwood | 2016-02-13 | 1 | -18/+5 |
| | |||||
* | No need for chdir in write_stratum_metafiles | Paul Sherwood | 2016-02-13 | 1 | -1/+2 |
| | |||||
* | Call get_cache to ensure unpacked directory exists | Paul Sherwood | 2016-02-08 | 1 | -3/+2 |
| | |||||
* | pep8 | Paul Sherwood | 2016-02-06 | 1 | -21/+31 |
| | |||||
* | Change artifact splitting rules matchingrdale/150-master-splitting | Richard Dale | 2016-02-04 | 1 | -27/+19 |
| | | | | | | | The default artifact splitting rules are augmented by custom splitting rules, and never overriden. The custom rules are matched first, followed by the default rules if the custom rules didn't match an item. Both stratum and chunk level splitting rules work this way. | ||||
* | Implement chunk artifacts functionality | Richard Dale | 2016-02-04 | 1 | -0/+4 |
| | |||||
* | Add artifact splitting | Richard Dale | 2016-02-03 | 1 | -0/+256 |
.meta files are now in YAML format. For a chunk, the .meta file contains a list of products with an artifact name and a file list for that artifact. Stratum .meta file also have a list of products, with each entry having an artifact name and a list of components. The component names in the stratum artifacts reference the chunk artifacts in the chunk .meta files. When a stratum is to be split according to a list of artifact names, the artifact names are looked up in the .meta file for the stratum, and only the components for matching artifacts are copied to the destination path. The .meta files for a split stratum should only contain references to files in the split sub set of the stratum, both for chunk .meta files and for the stratum .meta file. The code to match the split artifact regular expression rules was derived from code in a patch by Paul Martin |