aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-02-22 19:24:04 +0000
committerThierry Vignaud <tv@mageia.org>2012-02-22 19:24:04 +0000
commitb607a9c05366535f499f3eaddd9e3d5d395149b5 (patch)
tree2d3b7b5ad819f4921c5e0fee6462f18c8c6e7a65
parent22471f298ab4b6a88b3b7516bd229608dccaf89f (diff)
downloadperl-URPM-b607a9c05366535f499f3eaddd9e3d5d395149b5.tar
perl-URPM-b607a9c05366535f499f3eaddd9e3d5d395149b5.tar.gz
perl-URPM-b607a9c05366535f499f3eaddd9e3d5d395149b5.tar.bz2
perl-URPM-b607a9c05366535f499f3eaddd9e3d5d395149b5.tar.xz
perl-URPM-b607a9c05366535f499f3eaddd9e3d5d395149b5.zip
style: reindent after previous commit
-rw-r--r--URPM.xs42
1 files changed, 21 insertions, 21 deletions
diff --git a/URPM.xs b/URPM.xs
index bd34967..4c69c79 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -3470,23 +3470,23 @@ Urpm_parse_rpm(urpm, filename, ...)
else if (len == 8 && !memcmp(s, "callback", 8) && SvROK(ST(i+1)))
callback = ST(i+1);
else if (SvIV(ST(i+1))) {
- if (len == 5) {
- if (!memcmp(s, "nopgp", 5))
- vsflags |= (RPMVSF_NOSHA1 | RPMVSF_NOSHA1HEADER);
- else if (!memcmp(s, "nogpg", 5))
- vsflags |= (RPMVSF_NOSHA1 | RPMVSF_NOSHA1HEADER);
- else if (!memcmp(s, "nomd5", 5))
- vsflags |= (RPMVSF_NOMD5 | RPMVSF_NOMD5HEADER);
- else if (!memcmp(s, "norsa", 5))
- vsflags |= (RPMVSF_NORSA | RPMVSF_NORSAHEADER);
- else if (!memcmp(s, "nodsa", 5))
- vsflags |= (RPMVSF_NODSA | RPMVSF_NODSAHEADER);
- } else if (len == 9) {
- if (!memcmp(s, "nodigests", 9))
- vsflags |= _RPMVSF_NODIGESTS;
- else if (!memcmp(s, "nopayload", 9))
- vsflags |= _RPMVSF_NOPAYLOAD;
- }
+ if (len == 5) {
+ if (!memcmp(s, "nopgp", 5))
+ vsflags |= (RPMVSF_NOSHA1 | RPMVSF_NOSHA1HEADER);
+ else if (!memcmp(s, "nogpg", 5))
+ vsflags |= (RPMVSF_NOSHA1 | RPMVSF_NOSHA1HEADER);
+ else if (!memcmp(s, "nomd5", 5))
+ vsflags |= (RPMVSF_NOMD5 | RPMVSF_NOMD5HEADER);
+ else if (!memcmp(s, "norsa", 5))
+ vsflags |= (RPMVSF_NORSA | RPMVSF_NORSAHEADER);
+ else if (!memcmp(s, "nodsa", 5))
+ vsflags |= (RPMVSF_NODSA | RPMVSF_NODSAHEADER);
+ } else if (len == 9) {
+ if (!memcmp(s, "nodigests", 9))
+ vsflags |= _RPMVSF_NODIGESTS;
+ else if (!memcmp(s, "nopayload", 9))
+ vsflags |= _RPMVSF_NOPAYLOAD;
+ }
}
}
}
@@ -3532,10 +3532,10 @@ Urpm_verify_rpm(filename, ...)
STRLEN len;
char *s = SvPV(ST(i), len);
if (SvIV(ST(i+1))) {
- if (len == 9 && !strncmp(s, "nodigests", 9))
- qva.qva_flags &= ~VERIFY_DIGEST;
- else if (len == 12 && !strncmp(s, "nosignatures", 12))
- qva.qva_flags &= ~VERIFY_SIGNATURE;
+ if (len == 9 && !strncmp(s, "nodigests", 9))
+ qva.qva_flags &= ~VERIFY_DIGEST;
+ else if (len == 12 && !strncmp(s, "nosignatures", 12))
+ qva.qva_flags &= ~VERIFY_SIGNATURE;
}
}
fd = Fopen(filename, "r");