]>
Commit | Line | Data |
---|---|---|
d397adc8 ER |
1 | disable fetching sources. |
2 | annoying if you just want to get .spec structure! | |
3 | ||
4 | it could be parameter to s.parseSpec(), but as prevous code hardcoded, i'll | |
5 | just "hardcode" different value here. | |
6 | ||
7 | http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2015-November/024529.html | |
8 | ||
9 | one could play with '__urlgetfile' macro, and just tell it 'OK': | |
10 | %__urlgetfile OK | |
11 | ||
12 | but then ugly "Fetching" messages are still displayed, which maybe even more confusing. | |
13 | ||
14 | http://comments.gmane.org/gmane.comp.package-management.rpm.user/159 | |
15 | ||
1dc6af32 ER |
16 | --- rpm-5.4.16/python/spec-py.c~ 2014-10-06 22:44:50.000000000 +0300 |
17 | +++ rpm-5.4.16/python/spec-py.c 2016-03-16 18:26:35.334750440 +0200 | |
18 | @@ -280,7 +280,7 @@ | |
d397adc8 ER |
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 | ||
1dc6af32 ER |
27 | @@ -288,6 +288,8 @@ |
28 | &specfile)) | |
d397adc8 ER |
29 | return NULL; |
30 | ||
31 | + verify = rpmExpandNumeric("%{?_py_parsespec_verify}%{?!_py_parsespec_verify:0}"); | |
32 | + | |
1dc6af32 ER |
33 | ts = rpmtsCreate(); |
34 | if (parseSpec(ts, specfile, "/", recursing, passPhrase, | |
35 | cookie, anyarch, force, verify) == 0) |