[kubuntu-automation] Improving the build depends bumping part I

José Manuel Santamaría Lema panfaust at gmail.com
Mon Oct 12 12:48:02 UTC 2015


Hi,

as discussed this morning @ irc I made a script to generate automatically json 
files with the KDE build depends, so this json files could be used by the "bump-
build-dep-versions" script in kubuntu-automation.

I'm attaching:
1. a patch for lib/utils.py
2. a repo-names.json file mapping source package names with repository names 
(for those packages with a repository name different than the source package 
name)
3. the dev-package-name-list script itself

Example of usage to give you a clue how it works:

Assuming we have in ~/kdeframeworks all the git repositories of frameworks 
kubuntu's packaging, we could do this:
user at host:~/kdeframeworks$ dev-package-name-list -d wily -r frameworks -v 5.15
write /usr/local/bin/dev-package-name-lists/frameworks-wily.json

The contents of frameworks-wily.json would look like this:
{
    "extra-cmake-modules": "5.15.0~",
    "kded5-dev": "5.15.0~",
    "kdoctools-dev": "5.15.0~",
[snip]
}

Please review and test if the output files are ok, if you are reasonably happy 
with the result the next step would be hacking the "bump-build-dep-versions" 
script so it would use the resulting json files.

P.S. The reason to write a json map instead of a plain text file with one 
binary package per line is that some packages might have a different version 
than the rest of the frameworks/plasma/applications packages. Also some 
packages might have an epoch while others might not, so I think the best 
approach is finding out the right version on the fly and write it to the file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: utils.patch
Type: text/x-patch
Size: 1957 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kubuntu-devel/attachments/20151012/94055dbd/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: repo-names.json
Type: application/json
Size: 299 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kubuntu-devel/attachments/20151012/94055dbd/attachment.json>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dev-package-name-list
Type: text/x-python
Size: 3358 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kubuntu-devel/attachments/20151012/94055dbd/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.ubuntu.com/archives/kubuntu-devel/attachments/20151012/94055dbd/attachment.pgp>


More information about the kubuntu-devel mailing list