OTTAWA — The federal government says it will pay Lockheed Martin $1.5 billion through an updated contract to maintain and upgrade the Royal Canadian Air Force's Hercules transport aircraft.