Skip to content

Commit

Permalink
call getCanonArch() only once
Browse files Browse the repository at this point in the history
  • Loading branch information
Zdenek Pavlas committed Mar 14, 2013
1 parent 51ca8f0 commit 4868eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpmUtils/arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def setup_arch(self, arch=None, archlist_includes_compat_arch=True):
if arch:
self.canonarch = arch
else:
self.canonarch = getCanonArch()
self.canonarch = canonArch

self.basearch = getBaseArch(myarch=self.canonarch)
self.archlist = getArchList(thisarch=self.canonarch)
Expand Down

0 comments on commit 4868eef

Please sign in to comment.