Revision 80e0c0ab91e1cf6a6315d0431bf6873ebbf8bef0 authored by Junio C Hamano on 30 October 2005, 23:07:01 UTC, committed by Junio C Hamano on 31 October 2005, 01:28:04 UTC
The require statement at the top of git-svnimport seems to confuse
rpmbuild dependency generation.  It uses the newer notation "v5.8.0",
and rpm ends up requiring "perl(v5.8.0)", while we would want it to
say something like "perl >= 0:5.008".

Ryan suggests old-style "require 5.008" might fix this problem, so
here it is.

Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 64b1f6e
Raw File
get-tar-commit-id.c
/*
 * Copyright (C) 2005 Rene Scharfe
 */
#include <stdio.h>
#include <string.h>
#include <unistd.h>

#define HEADERSIZE	1024

int main(int argc, char **argv)
{
	char buffer[HEADERSIZE];
	ssize_t n;

	n = read(0, buffer, HEADERSIZE);
	if (n < HEADERSIZE) {
		fprintf(stderr, "read error\n");
		return 3;
	}
	if (buffer[156] != 'g')
		return 1;
	if (memcmp(&buffer[512], "52 comment=", 11))
		return 1;
	n = write(1, &buffer[523], 41);
	if (n < 41) {
		fprintf(stderr, "write error\n");
		return 2;
	}
	return 0;
}
back to top