fix bug that createrepo task doesn't work