diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-26 06:52:05 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-26 06:52:05 +0000 |
commit | af606a24ae10ba3ae8438916e97e3682e2ae0b86 (patch) | |
tree | 46c037981827e6af06aee09db24b410b7d582c19 /bin/repoman | |
parent | 4d0203b460ffad1c340fdc69c80351425b8b3fad (diff) | |
download | portage-af606a24ae10ba3ae8438916e97e3682e2ae0b86.tar.gz portage-af606a24ae10ba3ae8438916e97e3682e2ae0b86.tar.bz2 portage-af606a24ae10ba3ae8438916e97e3682e2ae0b86.zip |
Eliminate redundant Manifest separation code by combining mychanged + mynew sooner.
(trunk r12098)
svn path=/main/branches/2.1.6/; revision=12099
Diffstat (limited to 'bin/repoman')
-rwxr-xr-x | bin/repoman | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/bin/repoman b/bin/repoman index 028869f5c..06c0447ed 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1758,23 +1758,14 @@ else: # Manifests need to be regenerated after all other commits, so don't commit # them now even if they have changed. mymanifests = set() - changed_set = set() - new_set = set() - for f in mychanged: + myupdates = set() + for f in mychanged + mynew: if "Manifest" == os.path.basename(f): mymanifests.add(f) else: - changed_set.add(f) - for f in mynew: - if "Manifest" == os.path.basename(f): - mymanifests.add(f) - else: - new_set.add(f) - mychanged = list(changed_set) - mynew = list(new_set) + myupdates.add(f) + myupdates = list(myupdates) mymanifests = list(mymanifests) - del changed_set, new_set - myupdates = mychanged + mynew myheaders = [] mydirty = [] headerstring = "'\$(Header|Id)" |