[BZ-1062547] set repository policy when adding new remote repositories
(cherry picked from commit 769c57516567cade766f2b668475ab6d63fe8510)