diff --git a/SRPMS/skype/skype.spec.in b/SRPMS/skype/skype.spec.in index 04fb400..3d2ba73 100644 --- a/SRPMS/skype/skype.spec.in +++ b/SRPMS/skype/skype.spec.in @@ -38,15 +38,11 @@ tmpdir=$(mktemp -q -d -t skype.XXXXXXXX) wget -nv --timeout=10 --tries=2 \ ${SKYPE_URL}${SKYPE_PCK} -P ${tmpdir} - -SKYPE_ARCHIVE="`ls ${tmpdir}/skype-*`" + +SKYPE_ARCHIVE="`ls ${tmpdir}/*skype-* 2>/dev/null`" [ -f ${SKYPE_ARCHIVE} ] || exit 1 -if [ `echo ${SKYPE_ARCHIVE} | grep "tar.bz2$"` ]; then - tar xjf ${SKYPE_ARCHIVE} --strip-components=1 -else - tar xzf ${SKYPE_ARCHIVE} --strip-components=1 -fi +tar xf ${SKYPE_ARCHIVE} --strip-components=1 %build -q