From: Zac Medico Date: Tue, 4 Apr 2006 19:59:24 +0000 (-0000) Subject: Automatically create FILESDIR if necessary when writing old style digests. Thanks... X-Git-Tag: v2.1_pre8~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=87a1101e8fc06fda3311d50e7c9737cf1acb4e14;p=portage.git Automatically create FILESDIR if necessary when writing old style digests. Thanks to blubb for reporting. svn path=/main/trunk/; revision=3071 --- diff --git a/pym/portage_manifest.py b/pym/portage_manifest.py index e9f4a321f..6881c924d 100644 --- a/pym/portage_manifest.py +++ b/pym/portage_manifest.py @@ -124,6 +124,13 @@ class Manifest(object): """ Create old style digest files for this Manifest instance """ cpvlist = [os.path.join(self.pkgdir.rstrip(os.sep).split(os.sep)[-2], x[:-7]) for x in portage.listdir(self.pkgdir) if x.endswith(".ebuild")] rval = [] + try: + os.makedirs(os.path.join(self.pkgdir, "files")) + except OSError, oe: + if oe.errno == errno.EEXIST: + pass + else: + raise for cpv in cpvlist: dname = os.path.join(self.pkgdir, "files", "digest-"+portage.catsplit(cpv)[1]) distlist = self._getCpvDistfiles(cpv)