changeset 5608:aafa5a28314c

gup/gpkg fix: register after all fixup succeeded. Fixes db inconsistencies.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Wed, 23 Sep 2009 19:30:48 +0200
parents d7d9c66a625a
children 70b6d068b98d
files gub/gup.py
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gub/gup.py	Wed Sep 23 16:24:44 2009 +0200
+++ b/gub/gup.py	Wed Sep 23 19:30:48 2009 +0200
@@ -118,15 +118,17 @@
                          # http://lists.gnu.org/archive/html/lilypond-devel/2009-03/msg00304.html
                          'cd %(root)s && tar -C %(root)s -p -x%(_z)s%(_v)s -f %(ball)s'
                          % locals ())
+        for f in lst:
+            if f.endswith ('.la'):
+                self.libtool_la_fixup (root, f)
+            if f.endswith ('.pc'):
+                self.pkgconfig_pc_fixup (root, f, prefix_dir)
+
         self._package_file_db[name] = '\n'.join (lst)
         for f in lst:
             # ignore directories.
             if not f.endswith ('/'):
                 self._file_package_db[f] = name
-            if f.endswith ('.la'):
-                self.libtool_la_fixup (root, f)
-            if f.endswith ('.pc'):
-                self.pkgconfig_pc_fixup (root, f, prefix_dir)
 
     def libtool_la_fixup (self, root, file):
         # avoid using libs from build platform, by adding