Manifest: make distdir argument optional
authorZac Medico <zmedico@gentoo.org>
Wed, 9 Jan 2013 12:19:57 +0000 (04:19 -0800)
committerZac Medico <zmedico@gentoo.org>
Wed, 9 Jan 2013 12:19:57 +0000 (04:19 -0800)
pym/portage/manifest.py

index 4a60a228ccda64076862570423bde9e29a16e037..71837e074a9008e8101200f71afe214276b96801 100644 (file)
@@ -122,7 +122,7 @@ class Manifest2Entry(ManifestEntry):
 
 class Manifest(object):
        parsers = (parseManifest2,)
-       def __init__(self, pkgdir, distdir, fetchlist_dict=None,
+       def __init__(self, pkgdir, distdir=None, fetchlist_dict=None,
                manifest1_compat=DeprecationWarning, from_scratch=False, thin=False,
                allow_missing=False, allow_create=True, hashes=None,
                find_invalid_path_char=None):
@@ -383,7 +383,7 @@ class Manifest(object):
                        distfilehashes = self.fhashdict["DIST"]
                else:
                        distfilehashes = {}
-               self.__init__(self.pkgdir, self.distdir,
+               self.__init__(self.pkgdir, distdir=self.distdir,
                        fetchlist_dict=self.fetchlist_dict, from_scratch=True,
                        thin=self.thin, allow_missing=self.allow_missing,
                        allow_create=self.allow_create, hashes=self.hashes,