]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
In _remove_deb(), check for .UR as well as .HR 514/head
authorZack Cerza <zack@redhat.com>
Tue, 2 Jun 2015 22:19:53 +0000 (16:19 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 2 Jun 2015 22:19:53 +0000 (16:19 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/install.py

index d7ee43d12867ba3264847c240079ce2795ba08c6..8e8a7ae8bd59f2be50e4b7d25bb6d936ef97d04d 100644 (file)
@@ -608,7 +608,9 @@ def _remove_deb(ctx, config, remote, debs):
         args=[
             'dpkg', '-l',
             run.Raw('|'),
-            'grep', '^.HR',
+            # Any package that is unpacked or half-installed and also requires
+            # reinstallation
+            'grep', '^.\(U\|H\)R',
             run.Raw('|'),
             'awk', '{print $2}',
             run.Raw('|'),