Set repeat metadata for an option based on repeat local var not
constant.
diff --git a/Lib/distutils/fancy_getopt.py b/Lib/distutils/fancy_getopt.py
index fe9b0d4..cb89e07 100644
--- a/Lib/distutils/fancy_getopt.py
+++ b/Lib/distutils/fancy_getopt.py
@@ -182,7 +182,7 @@
                       ("invalid short option '%s': "
                        "must a single character or None") % short
 
-            self.repeat[long] = 1
+            self.repeat[long] = repeat
             self.long_opts.append(long)
 
             if long[-1] == '=':             # option takes an argument?