As Pervez Musharraf pursued his bid to be re-elected as president this weekend , the government jailed key opposition leaders and blocked others , like the former prime minister Nawaz Sharif , from entering the country .