[aur-dev] [PATCH 2/4] git-update: Remove superfluous assignment

Lukas Fleischer lfleischer at archlinux.org
Sun Aug 16 04:50:24 UTC 2015


The pkgbase variable already contains the package base name at this
point, no need to reassign it.

Signed-off-by: Lukas Fleischer <lfleischer at archlinux.org>
---
 git-interface/git-update.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/git-interface/git-update.py b/git-interface/git-update.py
index de6ceb4..8e69505 100755
--- a/git-interface/git-update.py
+++ b/git-interface/git-update.py
@@ -286,7 +286,6 @@ srcinfo_pkgbase = srcinfo._pkgbase['pkgname']
 if srcinfo_pkgbase != pkgbase:
     die('invalid pkgbase: {:s}, expected {:s}'.format(srcinfo_pkgbase, pkgbase))
 
-pkgbase = srcinfo._pkgbase['pkgname']
 cur.execute("SELECT ID FROM PackageBases WHERE Name = %s", [pkgbase])
 pkgbase_id = cur.fetchone()[0]
 
-- 
2.5.0


More information about the aur-dev mailing list