Commits

Moises Henriquez committed 3c6b1e0

fixed src name split error (ie, foo-bar-1.2.tar.bz2)

  • Participants
  • Parent commits b2a7f47

Comments (0)

Files changed (1)

File src/vpackager/buildutils.py

         self.path = path
         filename = os.path.split(path)[1]
         if '-' in filename:
-            fnsplit = filename.rsplit('-', 2)
+            fnsplit = filename.rsplit('-', 1)
         elif '_' in filename:
-            fnsplit = filename.rsplit('_', 2)
+            fnsplit = filename.rsplit('_', 1)
         self.app = fnsplit[0]
 
         if '.tar.' in fnsplit[1]: