1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 10:31:36 +00:00
nixpkgs/pkgs/applications/version-management/cvsps/01_ignoretrunk.dpatch
Ludovic Courtès 07e3e56082 cvsps: Add Debian patches.
svn path=/nixpkgs/trunk/; revision=11472
2008-04-06 20:04:40 +00:00

24 lines
643 B
Plaintext

#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_ignoretrunk.dpatch by <crafterm@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Ignore TRUNK branch name patch
@DPATCH@
diff -urN cvsps-2.1.orig/cvsps.c cvsps-2.1/cvsps.c
--- cvsps-2.1.orig/cvsps.c 2005-05-25 22:39:40.000000000 -0500
+++ cvsps-2.1/cvsps.c 2005-06-19 23:07:20.000000000 -0500
@@ -2104,6 +2109,11 @@
if (!get_branch_ext(rev, eot, &leaf))
{
+ if (strcmp(tag, "TRUNK") == 0)
+ {
+ debug(DEBUG_STATUS, "ignoring the TRUNK branch/tag");
+ return;
+ }
debug(DEBUG_APPERROR, "malformed revision");
exit(1);
}