let is_on_hold pkg = try match String.nsplit (assoc "status" pkg.extras) " " with |["hold";_;_] -> true | _ -> false with Not_found -> false