Fix output directory for ar archives.

This commit is contained in:
Bastian Kleineidam 2012-05-23 05:53:07 +02:00
parent a656fcfcbe
commit 4a7db8c161
1 changed files with 3 additions and 1 deletions

View File

@ -14,13 +14,15 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Archive commands for the ar program."""
import os
def extract_ar (archive, compression, cmd, **kwargs):
"""Extract a AR archive."""
opts = 'x'
if kwargs['verbose']:
opts += 'v'
return [cmd, opts, archive, kwargs['outdir']]
cmdlist = [cmd, opts, os.path.abspath(archive)]
return (cmdlist, {'cwd': kwargs['outdir']})
def list_ar (archive, compression, cmd, **kwargs):
"""List a AR archive."""