Monday, April 10, 2017

launchpad - Is there an easy way to automatically patch ubuntu sources as they become available and upload to a PPA?

I'm looking for a tool to do the following:




  • Automatically detect updates to a set of source packages (specifically gtk+2 and gtk+3)

  • download the source package

  • apply my own custom patches to the source

  • commit the patch properly (dpkg-source --commit [something-or-other]?)


  • if successful upload them to a PPA on Launchpad (which I can then point my system to in the usual way).



Can Launchpad do all of that for me?



If not, is there a tool that will automatically do all of that from a cron job?



Failing the above, I'll knock something together myself, but what commands do I need to:





  • detect and download the source package updates? (I'd prefer something like (bzr|git) pull rather than having to apt-get source a brand new copy each time)

  • auto-commit the patch locally (I'd use the same commit description each time)?

  • upload the sources non-interactively to a PPA?



I've found a question ( What is the proper way to patch Wine for a custom PPA? ), which is similar but the steps in the answer are still basically manual and interactive. A completely hands-off version of that plus automatic detection of source updates would help a lot.

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...