]> git.pld-linux.org Git - packages/rpm.git/blame - py-disable-fetch.patch
- enable extension-based-compression-detection in prep (rpm is misdetecting plain...
[packages/rpm.git] / py-disable-fetch.patch
CommitLineData
d397adc8
ER
1disable fetching sources.
2annoying if you just want to get .spec structure!
3
4it could be parameter to s.parseSpec(), but as prevous code hardcoded, i'll
5just "hardcode" different value here.
6
7http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2015-November/024529.html
8
9one could play with '__urlgetfile' macro, and just tell it 'OK':
10%__urlgetfile OK
11
12but then ugly "Fetching" messages are still displayed, which maybe even more confusing.
13
14http://comments.gmane.org/gmane.comp.package-management.rpm.user/159
15
16--- rpm-5.4.15/python/rpmts-py.c~ 2014-07-28 00:52:21.000000000 +0300
17+++ rpm-5.4.15/python/rpmts-py.c 2015-11-04 22:00:33.989058412 +0200
18@@ -1333,13 +1333,15 @@
19 char * passPhrase = "";
20 char *cookie = NULL;
21 int anyarch = 1;
22- int verify = 1;
23+ int verify;
24 int force = 1;
25 char * kwlist[] = {"specfile", NULL};
26
27 if (!PyArg_ParseTupleAndKeywords(args, kwds, "s:Parse", kwlist, &specfile))
28 return NULL;
29
30+ verify = rpmExpandNumeric("%{?_py_parsespec_verify}%{?!_py_parsespec_verify:0}");
31+
32 if (parseSpec(s->ts, specfile,"/", recursing, passPhrase,
33 cookie, anyarch, force, verify)!=0) {
34 PyErr_SetString(pyrpmError, "can't parse specfile\n");
This page took 0.034665 seconds and 4 git commands to generate.