mirror of
https://github.com/unmojang/meta.git
synced 2025-09-24 03:31:03 -04:00
chore: Replace assignments with augmented assignments
This commit is contained in:
parent
6d39c8dfe9
commit
8ad8ed95cb
@ -196,7 +196,7 @@ class ForgeVersion:
|
||||
self.changelog_url = None
|
||||
self.long_version = "%s-%s" % (self.mc_version, self.rawVersion)
|
||||
if self.branch is not None:
|
||||
self.long_version = self.long_version + "-%s" % self.branch
|
||||
self.long_version += "-%s" % self.branch
|
||||
|
||||
# this comment's whole purpose is to say this: cringe
|
||||
for classifier, file in entry.files.items():
|
||||
|
@ -92,7 +92,7 @@ class LegacyOverrideEntry(MetaBase):
|
||||
if self.additional_traits:
|
||||
if not meta_version.additional_traits:
|
||||
meta_version.additional_traits = []
|
||||
meta_version.additional_traits = meta_version.additional_traits + self.additional_traits
|
||||
meta_version.additional_traits += self.additional_traits
|
||||
|
||||
if legacy:
|
||||
# remove all libraries - they are not needed for legacy
|
||||
|
@ -87,14 +87,14 @@ def get_single_forge_files_manifest(longversion):
|
||||
pprint(classifier)
|
||||
pprint(extensionObj)
|
||||
print('%s: Skipping missing hash for extension %s:' % (longversion, extension))
|
||||
index = index + 1
|
||||
index += 1
|
||||
continue
|
||||
assert type(classifier) == str
|
||||
processedHash = re.sub(r"\W", "", hash)
|
||||
if not len(processedHash) == 32:
|
||||
print('%s: Skipping invalid hash for extension %s:' % (longversion, extension))
|
||||
pprint(extensionObj)
|
||||
index = index + 1
|
||||
index += 1
|
||||
continue
|
||||
|
||||
fileObj = ForgeFile(
|
||||
@ -104,8 +104,8 @@ def get_single_forge_files_manifest(longversion):
|
||||
)
|
||||
if count == 0:
|
||||
retDict[classifier] = fileObj
|
||||
index = index + 1
|
||||
count = count + 1
|
||||
index += 1
|
||||
count += 1
|
||||
else:
|
||||
print('%s: Multiple objects detected for classifier %s:' % (longversion, classifier))
|
||||
pprint(extensionObj)
|
||||
|
Loading…
x
Reference in New Issue
Block a user