Commits

Ned Batchelder committed fcc4407

Hmm, not sure why it worked yesterday, but this is better.

Comments (0)

Files changed (1)

distcmd/fixtar.py

         for itarinfo in itar:
             otarinfo = otar.gettarinfo(itarinfo.name)
             if the_dir is None:
-                n = itarinfo.name
-                assert n.count("/") == 1 and n.endswith("/")
-                the_dir = n[:-1]
+                n = itarinfo.name.rstrip("/")
+                assert "/" not in n
+                the_dir = n
             if itarinfo.isfile():
                 otarinfo.mode = 0644
             else: