diff --git a/installsystems/tarball.py b/installsystems/tarball.py
index a9c524587ac9c7cbf8c904c56a4c154ea77dd3d4..bfc89ed9daae15ef7bf0cb8048001d5a581a2ad6 100644
--- a/installsystems/tarball.py
+++ b/installsystems/tarball.py
@@ -40,7 +40,7 @@ class Tarball(tarfile.TarFile):
         # regexp matching
         if re_pattern is not None:
             return [ tpname for tpname in lorig
-                     if re.match(reg_pattern, tpname) ]
+                     if re.match(re_pattern, tpname) ]
         # globbing matching
         if glob_pattern is not None:
             return fnmatch.filter(lorig, glob_pattern)