Hi Martin, sorry for the slow reply,
On (23/09/06 22:00), martin f krafft wrote: > also sprach James Westby <[EMAIL PROTECTED]> [2006.09.23.1906 +0200]: > > It attempts to get as much information as possible from files. It can be > > run from an unpacked source dir, in which it read debian/control and > > debian/changelog to get the packages and versions. The alternative is to > > run it with a .changes file as an argument, in which case the old > > version must be provided, as it is not in the file. > > The way I always use debdiff is: > > apt-get source foo > cd foo-1.2 > dch -v1.2-1.1 > <make changes> > cd ../ > dpkg-source -b foo-1.2 > > Now, there will be two .dsc files, for -1 and -1.1, so you feed both > to debdiff. > > I don't quite understand your use case. Yes this does work, I just wanted to expand it a little to make it easier. As was noted debdiff also deals with binary packages, but in your case you only have one set. This script finds all of the binary packages that are built by looking in debian/control. It then downloads these binary packages using aptitude for both versions (or uses ones on the filesystem if you point it to them) and compares them. So my workflow is apt-get source foo cd foo-1.2 dch -v1.2-1.1 <make changes> pdebuild (or similar) checkdiffs --new-dir ../ (or wherever your build scripts leaves the packages) It allows you to compare all binary packages without having to specify them, and it removes the need to get the old versions if you don't have them. I noticed that there is a patch for half of this (the compare all binary packages part) in the BTS already, so it would remove part of the need for this script. I am not that bothered about inclusion, but I wrote the thing and I thought I would see if anyone else was interested. I had given it to one person before, who was preparing the new upload of xfce (some 10 or so source packages and many binary packages), and they liked it, as it became automated to check all of their packages. At the moment it does not also compare the source packages (I was not aware debdiff could) and would probably barf if udebs were being built. I would be happy to extend it if it were considered for inclusion. > > > +.TH USCAN 1 "Debian Utilities" "DEBIAN" \" -*- nroff -*- > > USCAN? :) oops, thanks for pointing this out. It should of course be checkdiffs. James -- James Westby -- GPG Key ID: B577FE13 -- http://jameswestby.net/ seccure key - (3+)k7|M*edCX/.A:n*N!>|&7U.L#9E)Tu)T0>AM - secp256r1/nistp256 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]