Skip to content

Commit

Permalink
Merge pull request spacetelescope#178 from jaytmiller/bestrefs-sync-r…
Browse files Browse the repository at this point in the history
…eferences-fix

Fix for crds.bestrefs --sync-references=1
  • Loading branch information
jaytmiller authored Dec 19, 2016
2 parents 421cb11 + ba068b7 commit defe494
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crds/bestrefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,11 @@ def print_new_references(self):

def sync_references(self):
"""Locally cache the new references referred to by updates."""
synced_references = {tup.new for tup in self.updates if tup.new not in ["N/A"]}
synced_references = {
tup.new_reference.lower()
for dataset in self.updates
for tup in self.updates[dataset] if tup.new_reference not in ["N/A"]
}
api.dump_references(self.new_context, sorted(synced_references), raise_exceptions=self.args.pdb)

# ===================================================================
Expand Down

0 comments on commit defe494

Please sign in to comment.