aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-10 08:53:09 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-10 08:53:09 +0000
commit76e7fc117ac909611f2c23abdad75412bb08443c (patch)
treea67b2f6c9c9fd46da92acb602bf12c3c38e134b3 /URPM.xs
parent8c823d8ec4257a10b6980f8b1109c8a358082564 (diff)
downloadperl-URPM-76e7fc117ac909611f2c23abdad75412bb08443c.tar
perl-URPM-76e7fc117ac909611f2c23abdad75412bb08443c.tar.gz
perl-URPM-76e7fc117ac909611f2c23abdad75412bb08443c.tar.bz2
perl-URPM-76e7fc117ac909611f2c23abdad75412bb08443c.tar.xz
perl-URPM-76e7fc117ac909611f2c23abdad75412bb08443c.zip
Remove unused variable
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs8
1 files changed, 2 insertions, 6 deletions
diff --git a/URPM.xs b/URPM.xs
index 7da9eac..53541dd 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -3343,7 +3343,6 @@ Urpm_verify_rpm(filename, ...)
rpmRC rc = 0;
FD_t fd;
int i;
- const char *tmpfile = NULL;
char * fmtsig = NULL;
char buffer[8192];
rpmts ts;
@@ -3378,11 +3377,8 @@ Urpm_verify_rpm(filename, ...)
else if (len == 9 && !memcmp(s, "nodigests", 9)) {
if (SvIV(ST(i+1))) vsflags |= _RPMVSF_NODIGESTS;
}
- else if (len == 12) {
- if (!memcmp(s, "tmp_filename", 12))
- tmpfile = SvPV_nolen(ST(i+1));
- else if (!memcmp(s, "nosignatures", 12))
- vsflags |= _RPMVSF_NOSIGNATURES;
+ else if (len == 12 && !memcmp(s, "nosignatures", 12)) {
+ vsflags |= _RPMVSF_NOSIGNATURES;
}
}
RETVAL = NULL;