[gnome-boxes/show-recomended-resources: 4/8] util: compare_cpu_architectures() supports 'all' arch



commit b32ec64f496d6c36719063dac48888524611d654
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Feb 5 16:24:00 2013 +0200

    util: compare_cpu_architectures() supports 'all' arch
    
    This is going to be needed in the following patches when we use this
    function for comparing CPU arch against minimum/recommended resources.

 src/util-app.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/util-app.vala b/src/util-app.vala
index d98f259..3cd2aa9 100644
--- a/src/util-app.vala
+++ b/src/util-app.vala
@@ -458,6 +458,8 @@ namespace Boxes {
             default:
                 return CPUArchCompatibity.INCOMPATIBLE;
             }
+        case Osinfo.ARCHITECTURE_ALL:
+            return CPUArchCompatibity.COMPATIBLE;
         default:
             return CPUArchCompatibity.INCOMPATIBLE;
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]