src/modules/client/api.py
changeset 1504 265a1d6b86bd
parent 1503 78d56b8ee320
child 1505 cc598d70bbbe
equal deleted inserted replaced
1503:78d56b8ee320 1504:265a1d6b86bd
  1484                                 if id(new_pub) == new_id:
  1484                                 if id(new_pub) == new_id:
  1485                                         del publishers[new_pfx]
  1485                                         del publishers[new_pfx]
  1486                                         publishers[old_pub.prefix] = old_pub
  1486                                         publishers[old_pub.prefix] = old_pub
  1487                                         break
  1487                                         break
  1488 
  1488 
       
  1489                 repo = pub.selected_repository
       
  1490                 if not repo.origins:
       
  1491                         raise api_errors.PublisherOriginRequired(pub.prefix)
       
  1492 
  1489                 try:
  1493                 try:
  1490                         if disable:
  1494                         if disable:
  1491                                 # Remove the publisher's metadata (such as
  1495                                 # Remove the publisher's metadata (such as
  1492                                 # catalogs, etc.).  This only needs to be done
  1496                                 # catalogs, etc.).  This only needs to be done
  1493                                 # in the event that a publisher is disabled; in
  1497                                 # in the event that a publisher is disabled; in