M ChangeLog => ChangeLog +3 -0
@@ 1,3 1,6 @@
+2012-08-25 Jaka Kranjc <lynxlynxlynx@sourcemage.org>
+ * sorcery: only look at spec files when scanning architectures #438
+
2012-06-24 Jaka Kranjc <lynxlynxlynx@sourcemage.org>
* libunpack, libmisc: also detect old style xz archives #347
* libqueue: renamed two functions for clarity
M usr/sbin/sorcery => usr/sbin/sorcery +1 -1
@@ 685,7 685,7 @@ architecture_menu() {
# same name), it reverses the output from tac so that the first archspecs
# found are the last added to the hash table and thus are prefered over
# ones found later
- for SPECFILE in $(find $ARCH_SPECS -not -name '*~'|tac); do
+ for SPECFILE in $(find $ARCH_SPECS -type f -not -name '*~' | tac); do
if test -x "$SPECFILE" && grep -q "CPUNAME" $SPECFILE; then
smgl_basename "$SPECFILE" specname
hash_put archspec_hash $specname $SPECFILE