For bug #116616, only run the post_process phase if necessary.
authorZac Medico <zmedico@gentoo.org>
Wed, 1 Nov 2006 10:10:05 +0000 (10:10 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 1 Nov 2006 10:10:05 +0000 (10:10 -0000)
svn path=/main/trunk/; revision=4903

bin/archive-conf

index b3d17cc6f692100b970c0cb85cef998178c757dc..310687581f2cd4cf7a61d6066c8d3be1b9c0b7a6 100755 (executable)
@@ -93,10 +93,12 @@ def archive_conf():
         archive = os.path.join(options['archive-dir'], conf.lstrip('/'))
         if options['use-rcs'] == 'yes':
             dispatch_conf.rcs_archive(archive, conf, md5_match_hash[conf], '')
-            dispatch_conf.rcs_archive_post_process(archive)
+            if md5_match_hash[conf]:
+                dispatch_conf.rcs_archive_post_process(archive)
         else:
             dispatch_conf.file_archive(archive, conf, md5_match_hash[conf], '')
-            dispatch_conf.file_archive_post_process(archive)
+            if md5_match_hash[conf]:
+                dispatch_conf.file_archive_post_process(archive)
 
 # run
 if len(sys.argv) > 1: