opkg: adding repository check function