Index: trunk/ppImage/src/ppImageDefineFile.c
===================================================================
--- trunk/ppImage/src/ppImageDefineFile.c	(revision 23366)
+++ trunk/ppImage/src/ppImageDefineFile.c	(revision 26494)
@@ -12,6 +12,6 @@
 
     if (!file) {
-        // look for the file on the RUN metadata
-        file = pmFPAfileDefineFromRun(&status, NULL, config, filerule);
+        // look for the file on the argument list
+        file = pmFPAfileDefineFromArgs(&status, config, filerule, argname);
         if (!status) {
             psError(PS_ERR_UNKNOWN, false, "failed to load file definition");
@@ -20,6 +20,6 @@
     }
     if (!file) {
-        // look for the file on the argument list
-        file = pmFPAfileDefineFromArgs(&status, config, filerule, argname);
+        // look for the file on the RUN metadata
+        file = pmFPAfileDefineFromRun(&status, NULL, config, filerule);
         if (!status) {
             psError(PS_ERR_UNKNOWN, false, "failed to load file definition");
