Also, remove origlines which hasn't been used in some time.
import HTMLParser
from distutils.version import LooseVersion
import logging
+import copy
import common
import metadata
logging.info("Refusing to auto update, since the latest build is newer")
if not gotcur:
- newbuild = latest.copy()
- if newbuild.origlines:
- del newbuild.origlines[:]
+ newbuild = copy.deepcopy(latest)
newbuild.disable = False
newbuild.vercode = app.CurrentVersionCode
newbuild.version = app.CurrentVersion + suffix
if len(parts) < 3:
raise MetaDataException("Invalid build format: " + v + " in " + metafile.name)
build = Build()
- build.origlines = lines
build.version = parts[0]
build.vercode = parts[1]
if parts[2].startswith('!'):