summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-07-21 12:57:57 +0000
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-11-14 14:47:21 +0200
commit3c109130f11d4eba0dc442a3e82bd7e3746fbd64 (patch)
tree066ccc86f5b6350e2e0c0329abb875a4ec7e1780
parent5d1bb5b2d81d2bd6856843bc032f862f436a4dcd (diff)
downloadgit-buildpackage-3c109130f11d4eba0dc442a3e82bd7e3746fbd64.tar.gz
git-buildpackage-3c109130f11d4eba0dc442a3e82bd7e3746fbd64.tar.bz2
git-buildpackage-3c109130f11d4eba0dc442a3e82bd7e3746fbd64.zip
buildpackage-rpm: remove some unused variables
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rwxr-xr-xgbp/scripts/buildpackage_rpm.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/gbp/scripts/buildpackage_rpm.py b/gbp/scripts/buildpackage_rpm.py
index fdf0cd3c..d9abb800 100755
--- a/gbp/scripts/buildpackage_rpm.py
+++ b/gbp/scripts/buildpackage_rpm.py
@@ -113,8 +113,6 @@ def prepare_upstream_tarball(repo, spec, options, output_dir):
def makedir(dir):
"""Create directory"""
- output_dir = os.path.abspath(dir)
-
try:
os.mkdir(dir)
except OSError, (e, msg):
@@ -329,7 +327,7 @@ def update_tag_str_fields(fields, tag_format_str, repo, commit_info):
fields['authortime'] = datetime.fromtimestamp(int(commit_info['author'].date.split()[0])).strftime(RpmPkgPolicy.tag_timestamp_format)
fields['committime'] = datetime.fromtimestamp(int(commit_info['committer'].date.split()[0])).strftime(RpmPkgPolicy.tag_timestamp_format)
- fields['version'] = version=RpmPkgPolicy.compose_full_version(fields)
+ fields['version'] = RpmPkgPolicy.compose_full_version(fields)
# Parse tags with incremental numbering
re_fields = dict(fields,
@@ -530,8 +528,6 @@ def main(argv):
except GitRepositoryError:
gbp.log.err("%s is not a git repository" % (os.path.abspath('.')))
return 1
- else:
- repo_dir = os.path.abspath(os.path.curdir)
# Determine tree-ish to be exported
try: