From 87a1101e8fc06fda3311d50e7c9737cf1acb4e14 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 4 Apr 2006 19:59:24 +0000 Subject: [PATCH] Automatically create FILESDIR if necessary when writing old style digests. Thanks to blubb for reporting. svn path=/main/trunk/; revision=3071 --- pym/portage_manifest.py | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- 2.26.2