Commit bcf4c71f authored by Seblu's avatar Seblu
Browse files

Fix emptyness checks of pkg{name,ver} in update

parent 22af2739
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -123,9 +123,9 @@ def command_update(args, vctrl):
    pkgname = pkgdict.get("pkgname0", pkgdict.get("pkgbase", None))
    pkgver = pkgdict.get("pkgver", None)
    # some sanity checks
    if "pkgname" is None:
    if pkgname is None:
        raise BaseError("Unable to detect pkgname in %s" % args.path)
    if "pkgver" is None:
    if pkgver is None:
        raise BaseError("Unable to detect pkgver in %s" % args.path)
    # get upstream version
    vctrl.packages = [ pkgname ]