On 09/02/10 10:20, Oded Arbel wrote:
I want to patch a package and upload the new patched package to my PPA (see LP bug #36812 for details about the patch). I downloaded the current source release from karmic-updates, patched it, build it using pbuilder and ran 'dput my-ppa target/*.changes', which completed successfully. I then got an email saying the the package was rejected because "PPA uploads must be for the RELEASE pocket." As far as I understand (from an IRC log that Google found for me) its because I based my changes on a package from karmic-updates and not from the karmic release repository. So I went and got the source package from the karmic release repo, then did a debdiff against my new source package (after I already patched it), and applied the patch to the karmic release package.
So you diffed from A to B and applied the resulting patch to A? Well that just gives you a result identical to B :-) So you just have the same package back again.
So now I got this in the source directory: xorg-server-1.6.4 xorg-server_1.6.4.orig.tar.gz xorg-server_1.6.4-2ubuntu4.dsc xorg-server_1.6.4-2ubuntu4.diff.gz xorg-server_1.6.4-2ubuntu4.2.dsc xorg-server_1.6.4-2ubuntu4.2_amd64.build xorg-server_1.6.4-2ubuntu4.2_source.changes xorg-server_1.6.4-2ubuntu4.2.diff.gz xorg-server_1.6.4-2ubuntu4.2_source.ppa.upload 2ubuntu4 is the release package, 2ubuntu4.1 is the package from karmic-updates and when I ran 'dch -n' it created 2ubuntu4.2 for me.
I strongly suggest not giving your own packages versions which could be used in Ubuntu itself in the future - you'll confuse yourself and others.
Instead you should call your package 1.6.4-2ubuntu4.1ppa1 .
Now even though the original dsc is for 2ubuntu4, after I pdebuild the source with my patches (containing both the 4.1 patch from updates as well as my patch) the source.changes file only has the changes from my patch,
Unless you override it, the .changes file always just gets the last changelog entry.
and when I try to upload it, I get the "RELEASE pocket" error again. What am I doing wrong and how to fix it?
Look at the upload target named in the top line of debian/changelog. It will currently say "karmic-updates" because dch carried forward the one from the previous entry.
However all uploads to PPAs should be to a bare distro name, i.e. "karmic". Change that, and it will work.
Max.
This is the launchpad-users mailing list archive — see also the general help for Launchpad.net mailing lists.
(Formatted by MHonArc.)