Use startdir instead of mydir since mydir has a trailing slash which triggers normali...
authorZac Medico <zmedico@gentoo.org>
Thu, 22 Feb 2007 12:30:55 +0000 (12:30 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 22 Feb 2007 12:30:55 +0000 (12:30 -0000)
svn path=/main/branches/2.1.2/; revision=6032

bin/repoman

index 8d7e1346dc812a5094d1dae018035d46cb9863d8..bdd04b088afca2aaa80be4a57a1ee33b18a7d19a 100755 (executable)
@@ -1663,7 +1663,7 @@ else:
                                del myfiles[x]
                mydone=[]
                if repolevel==3:   # In a package dir
-                       repoman_settings["O"] = mydir
+                       repoman_settings["O"] = startdir
                        portage.digestgen([], repoman_settings, manifestonly=1,
                                myportdb=portdb)
                elif repolevel==2: # In a category dir
@@ -1674,7 +1674,7 @@ else:
                                if xs[0] in mydone:
                                        continue
                                mydone.append(xs[0])
-                               repoman_settings["O"] = os.path.join(mydir, xs[0])
+                               repoman_settings["O"] = os.path.join(startdir, xs[0])
                                portage.digestgen([], repoman_settings, manifestonly=1,
                                        myportdb=portdb)
                elif repolevel==1: # repo-cvsroot
@@ -1686,7 +1686,7 @@ else:
                                if "/".join(xs[:2]) in mydone:
                                        continue
                                mydone.append("/".join(xs[:2]))
-                               repoman_settings["O"] = os.path.join(mydir, xs[0], xs[1])
+                               repoman_settings["O"] = os.path.join(startdir, xs[0], xs[1])
                                portage.digestgen([], repoman_settings, manifestonly=1,
                                        myportdb=portdb)
                else: