fix bugs in Repository::apt::Maintain

See commits for fixes..