diff --git a/Makefile-ostree.am b/Makefile-ostree.am
index a5509f7ca0..dde10c1753 100644
--- a/Makefile-ostree.am
+++ b/Makefile-ostree.am
@@ -105,7 +105,7 @@ ostree_SOURCES += \
if USE_GPGME
ostree_SOURCES += \
src/ostree/ot-remote-builtin-gpg-import.c \
- src/ostree/ot-remote-builtin-list-gpg-keys.c \
+ src/ostree/ot-remote-builtin-gpg-list-keys.c \
$(NULL)
endif
diff --git a/Makefile-tests.am b/Makefile-tests.am
index 1997bfd842..81fe2b764d 100644
--- a/Makefile-tests.am
+++ b/Makefile-tests.am
@@ -152,7 +152,7 @@ _installed_or_uninstalled_test_scripts = \
if USE_GPGME
_installed_or_uninstalled_test_scripts += \
tests/test-remote-gpg-import.sh \
- tests/test-remote-list-gpg-keys.sh \
+ tests/test-remote-gpg-list-keys.sh \
tests/test-gpg-signed-commit.sh \
tests/test-admin-gpg.sh \
$(NULL)
diff --git a/bash/ostree b/bash/ostree
index 32d5e3174d..c990462fed 100644
--- a/bash/ostree
+++ b/bash/ostree
@@ -1381,9 +1381,9 @@ _ostree_remote() {
delete
delete-cookie
gpg-import
+ gpg-list-keys
list
list-cookies
- list-gpg-keys
refs
show-url
summary
diff --git a/man/ostree-remote.xml b/man/ostree-remote.xml
index 928bf9b5f8..20fe0a19f9 100644
--- a/man/ostree-remote.xml
+++ b/man/ostree-remote.xml
@@ -66,7 +66,7 @@ Boston, MA 02111-1307, USA.
ostree remote gpg-import OPTIONS NAME KEY-ID
- ostree remote list-gpg-keys NAME
+ ostree remote gpg-list-keys NAME
ostree remote refs NAME
@@ -112,7 +112,7 @@ Boston, MA 02111-1307, USA.
The gpg-import subcommand can associate GPG
keys to a specific remote repository for use when pulling signed
commits from that repository (if GPG verification is enabled). The
- list-gpg-keys subcommand can be used to see the
+ gpg-list-keys subcommand can be used to see the
GPG keys currently associated with a remote repository.
diff --git a/src/ostree/ot-builtin-remote.c b/src/ostree/ot-builtin-remote.c
index 7028eacc75..3c0d9d2e47 100644
--- a/src/ostree/ot-builtin-remote.c
+++ b/src/ostree/ot-builtin-remote.c
@@ -44,7 +44,7 @@ static OstreeCommand remote_subcommands[] = {
{ "gpg-import", OSTREE_BUILTIN_FLAG_NONE,
ot_remote_builtin_gpg_import,
"Import GPG keys" },
- { "list-gpg-keys", OSTREE_BUILTIN_FLAG_NONE,
+ { "gpg-list-keys", OSTREE_BUILTIN_FLAG_NONE,
ot_remote_builtin_list_gpg_keys,
"Show remote GPG keys" },
#endif /* OSTREE_DISABLE_GPGME */
diff --git a/src/ostree/ot-remote-builtin-list-gpg-keys.c b/src/ostree/ot-remote-builtin-gpg-list-keys.c
similarity index 100%
rename from src/ostree/ot-remote-builtin-list-gpg-keys.c
rename to src/ostree/ot-remote-builtin-gpg-list-keys.c
diff --git a/tests/test-remote-list-gpg-keys.sh b/tests/test-remote-gpg-list-keys.sh
similarity index 94%
rename from tests/test-remote-list-gpg-keys.sh
rename to tests/test-remote-gpg-list-keys.sh
index 81699f14ec..51b600842f 100755
--- a/tests/test-remote-list-gpg-keys.sh
+++ b/tests/test-remote-gpg-list-keys.sh
@@ -46,7 +46,7 @@ cd ${test_tmpdir}
${OSTREE} remote add R1 http://example.com/repo
# No remote keyring should list no keys.
-${OSTREE} remote list-gpg-keys R1 > result
+${OSTREE} remote gpg-list-keys R1 > result
assert_file_empty result
echo "ok remote no keyring"
@@ -54,7 +54,7 @@ echo "ok remote no keyring"
# Make the global keyring available and make sure there are still no
# keys found for a specified remote.
OSTREE_GPG_HOME=${trusteddir}
-${OSTREE} remote list-gpg-keys R1 > result
+${OSTREE} remote gpg-list-keys R1 > result
OSTREE_GPG_HOME=${emptydir}
assert_file_empty result
@@ -62,7 +62,7 @@ echo "ok remote with global keyring"
# Import a key and check that it's listed
${OSTREE} remote gpg-import --keyring ${TEST_GPG_KEYHOME}/key1.asc R1
-${OSTREE} remote list-gpg-keys R1 > result
+${OSTREE} remote gpg-list-keys R1 > result
cat > expected <<"EOF"
Key: 5E65DE75AB1C501862D476347FCA23D8472CDAFA
Created: Tue Sep 10 02:29:42 2013
@@ -78,14 +78,14 @@ echo "ok remote with keyring"
# Check the global keys with no keyring
OSTREE_GPG_HOME=${emptydir}
-${OSTREE} remote list-gpg-keys > result
+${OSTREE} remote gpg-list-keys > result
assert_file_empty result
echo "ok global no keyring"
# Now check the global keys with a keyring
OSTREE_GPG_HOME=${trusteddir}
-${OSTREE} remote list-gpg-keys > result
+${OSTREE} remote gpg-list-keys > result
OSTREE_GPG_HOME=${emptydir}
cat > expected <<"EOF"
Key: 5E65DE75AB1C501862D476347FCA23D8472CDAFA
@@ -134,7 +134,7 @@ else
sleep 2
${GPG} --homedir=${test_tmpdir}/gpghome --armor --export ${TEST_GPG_KEYID_1} > ${test_tmpdir}/key1expired.asc
${OSTREE} remote gpg-import --keyring ${test_tmpdir}/key1expired.asc R1
- ${OSTREE} remote list-gpg-keys R1 > result
+ ${OSTREE} remote gpg-list-keys R1 > result
assert_file_has_content result "^ Expired:"
echo "ok remote expired key"
@@ -143,7 +143,7 @@ else
${GPG} --homedir=${TEST_GPG_KEYHOME} --import ${TEST_GPG_KEYHOME}/revocations/key1.rev
${GPG} --homedir=${test_tmpdir}/gpghome --armor --export ${TEST_GPG_KEYID_1} > ${test_tmpdir}/key1revoked.asc
${OSTREE} remote gpg-import --keyring ${test_tmpdir}/key1revoked.asc R1
- ${OSTREE} remote list-gpg-keys R1 > result
+ ${OSTREE} remote gpg-list-keys R1 > result
assert_file_has_content result "^Key: 5E65DE75AB1C501862D476347FCA23D8472CDAFA (revoked)"
assert_file_has_content result "^ UID: Ostree Tester (revoked)"
assert_file_has_content result "^ Subkey: CC47B2DFB520AEF231180725DF20F58B408DEA49 (revoked)"