[PATCH 16/22] Remove timestamp-based version support.

David Shea dshea at redhat.com
Wed Jun 3 16:03:40 UTC 2015


If you make a image with a timestamp-based version you are going
to get release twenty million some. If you are doing this please
stop doing this.

(cherry picked from commit 56a134d703d893da6477dd7efe7de8d24a43a48a)

Related: rhbz#1188287
---
 pyanaconda/packaging/__init__.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/pyanaconda/packaging/__init__.py b/pyanaconda/packaging/__init__.py
index df9b55c..cf52a8a 100644
--- a/pyanaconda/packaging/__init__.py
+++ b/pyanaconda/packaging/__init__.py
@@ -33,7 +33,6 @@ from urlgrabber.grabber import URLGrabber
 from urlgrabber.grabber import URLGrabError
 import ConfigParser
 import shutil
-import time
 from glob import glob
 import re
 import threading
@@ -463,9 +462,6 @@ class Payload(object):
             except ConfigParser.Error:
                 pass
 
-        if version.startswith(time.strftime("%Y")):
-            version = "rawhide"
-
         log.debug("got a release version of %s", version)
         return version
 
-- 
2.1.0



More information about the anaconda-patches mailing list