Browse Source

Fix outdated iniread call

Alois Mahdal 10 years ago
parent
commit
fc42e96d83
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      bin/eeget.in

+ 3
- 3
bin/eeget.in View File

@@ -49,7 +49,7 @@ if test -n "$nvrlist";     # NVR list provided; make up DESTs and call self
49 49
 then
50 50
     dirname="rpms.$(basename $nvrlist)"
51 51
     rm -f rpms
52
-    archs=$(iniread -k arch < $nvrlist | paste -sd,)
52
+    archs=$(iniread -k arch - < $nvrlist | paste -sd,)
53 53
     if test -z "$archs";
54 54
     then
55 55
         warn "archs not specified, using $(which arch)"
@@ -57,8 +57,8 @@ then
57 57
     fi
58 58
     for arch in $(tr "," " " <<<"$archs");
59 59
     do
60
-        get_nvr $(iniread -k old < $nvrlist).$arch "$dirname/old/$arch"
61
-        get_nvr $(iniread -k new < $nvrlist).$arch "$dirname/new/$arch"
60
+        get_nvr $(iniread -k old - < $nvrlist).$arch "$dirname/old/$arch"
61
+        get_nvr $(iniread -k new - < $nvrlist).$arch "$dirname/new/$arch"
62 62
     done
63 63
     ln -s $dirname rpms
64 64