[bugfix] logic backwards for update repo