]> Savannah Git Hosting - gnulib.git/commitdiff
generator: swap mkedits yield and delete actions
authorDmitry Selyutin <ghostmansd@gmail.com>
Wed, 4 Jul 2018 07:54:18 +0000 (10:54 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Wed, 4 Jul 2018 07:54:18 +0000 (10:54 +0300)
pygnulib/generator.py

index 0ed5e03a4bd4a0c0552cc013c01399a672e2244d..1ccfa49d9a3baa2f257544118e070bb72c872746 100644 (file)
@@ -625,8 +625,8 @@ def lib_makefile(path, config, explicit, database, mkedits, testing, autoconf, *
 
     for (directory, key, value) in mkedits:
         if key and _os.path.join(directory, "Makefile.am") == path:
-            del (directory, key, value)
             yield f"{key} += {value}"
+            del (directory, key, value)
 
     cppflags = "".join((
         " -D{}=1".format(config.witness_c_macro) if "witness_c_macro" in explicit else "",