diff --git a/extract_file b/extract_file index dc6900e..9b14220 100644 --- a/extract_file +++ b/extract_file @@ -52,13 +52,13 @@ cd "$MYOUTDIR" existing_archive=$(echo $MYARCHIVE) if [ -e "$existing_archive" ]; then if [ "${existing_archive%.tar.gz}" != "$existing_archive" ]; then - tar xfz "$existing_archive" $MYFILES || exit 1 + tar xfz "$existing_archive" --wildcards $MYFILES || exit 1 elif [ "${existing_archive%.tar.bz2}" != "$existing_archive" ]; then - tar xfj "$existing_archive" $MYFILES || exit 1 + tar xfj "$existing_archive" --wildcards $MYFILES || exit 1 elif [ "${existing_archive%.tar.xz}" != "$existing_archive" ]; then - tar xfJ "$existing_archive" $MYFILES || exit 1 + tar xfJ "$existing_archive" --wildcards $MYFILES || exit 1 elif [ "${existing_archive%.tar}" != "$existing_archive" ]; then - tar xf "$existing_archive" $MYFILES || exit 1 + tar xf "$existing_archive" --wildcards $MYFILES || exit 1 elif [ "${existing_archive%.zip}" != "$existing_archive" ]; then unzip "$existing_archive" $MYFILES || exit 1 else diff --git a/obs-service-extract_file.changes b/obs-service-extract_file.changes index b52a452..9a075e8 100644 --- a/obs-service-extract_file.changes +++ b/obs-service-extract_file.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 27 21:36:13 UTC 2011 - dibo@users.sourceforge.net + +- added posibility to use wildcards in extracted file names + ------------------------------------------------------------------- Wed Feb 23 15:36:13 UTC 2011 - adrian@suse.de