git-update: Improve error message on invalid pkgbase
commitd0be66015ab86ecdc34025bb870e8e4d5897ceec
authorLukas Fleischer <lfleischer@archlinux.org>
Sat, 27 Jun 2015 09:58:17 +0000 (27 11:58 +0200)
committerLukas Fleischer <lfleischer@archlinux.org>
Sat, 27 Jun 2015 11:04:03 +0000 (27 13:04 +0200)
treed1b142ffa9506c8de40c1a6335b5b16740e4d0db
parent8bd03adb6168b16222510f2e1a148f2ad5ea3afb
git-update: Improve error message on invalid pkgbase

When the package base does not match the repository name, we currently
show an error message that only mentions the package base name:

    error: invalid pkgbase: yate-qt4

To the end user this sounds like the package base name is malformed
itself (and we show exactly the same error message when it contains
invalid characters, indeed). Clarify that there is a name mismatch by
also printing the expected value:

    error: invalid pkgbase: yate-qt4, expected: yate4-qt

Inspired by FS#45483.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
git-interface/git-update.py