xbps-uhelper: fix 'version' target.

This commit is contained in:
Juan RP 2013-03-05 04:45:32 +01:00
parent 7c1a0ac3e8
commit 0e50b09cbe

View File

@ -1,5 +1,5 @@
/*- /*-
* Copyright (c) 2008-2012 Juan Romero Pardines. * Copyright (c) 2008-2013 Juan Romero Pardines.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -159,8 +159,8 @@ main(int argc, char **argv)
if (dict == NULL) if (dict == NULL)
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
prop_dictionary_get_cstring_nocopy(dict, "version", &version); prop_dictionary_get_cstring_nocopy(dict, "pkgver", &version);
printf("%s\n", version); printf("%s\n", xbps_pkg_version(version));
} else if (strcasecmp(argv[0], "sanitize-plist") == 0) { } else if (strcasecmp(argv[0], "sanitize-plist") == 0) {
/* Sanitize a plist file (properly indent the file) */ /* Sanitize a plist file (properly indent the file) */
if (argc != 2) if (argc != 2)