]> err.no Git - dpkg/commit
dpkg-source/3.0 (quilt): improve reliability of check_patches_applied
authorRaphael Hertzog <hertzog@debian.org>
Wed, 28 May 2008 16:05:50 +0000 (18:05 +0200)
committerRaphael Hertzog <hertzog@debian.org>
Wed, 28 May 2008 20:38:31 +0000 (22:38 +0200)
commit53fa0ea2e520cd26857ff577ffe7e49558af440c
tree4b91933b4d849583aa2e41322486770d684e2c0d
parenta05d25dc569e4ab5384fd1dfeaedadee06532d68
dpkg-source/3.0 (quilt): improve reliability of check_patches_applied

* scripts/Dpkg/Source/Patch.pm (check_apply): New function to
verify if a patch will successfully apply on top of a given
directory.
* scripts/Dpkg/Source/Package/V3/quilt.pm (check_patches_applied):
Don't trust debian/patches/.dpkg-source-applied blindly. Get a
list of (supposedly unapplied) patches and verify if the first
patch applies or not. If yes, then apply the patch series,
otherwise do not (and assume that the patch series is already
applied).
ChangeLog
scripts/Dpkg/Source/Package/V3/quilt.pm
scripts/Dpkg/Source/Patch.pm