Skip to content

Instantly share code, notes, and snippets.

@fuzzy
Created May 26, 2013 02:58
Show Gist options
  • Select an option

  • Save fuzzy/5651556 to your computer and use it in GitHub Desktop.

Select an option

Save fuzzy/5651556 to your computer and use it in GitHub Desktop.
car.py output
$ ls
./ ../ Python-2.7.4.tar.bz2 car.py* ruby-1.8.6-p420.tar.gz
$ ./car.py
Sat May 25 19:55:33 2013
objA = Libarchive(fname="/home/mpartin/.cpkg/tmp/ruby-1.8.6-p420.tar.gz", debug=True)
DEBUG: Loaded library <CDLL '/usr/lib/libarchive.so', handle 80079d000 at 801775f90>
objB = Libarchive(fname="/home/mpartin/.cpkg/tmp/Python-2.7.4.tar.bz2", debug=True)
DEBUG: Loaded library <CDLL '/usr/lib/libarchive.so', handle 80079d000 at 80177e0d0>
ret = objA.extractArchive()
Sat May 25 19:55:39 2013
ret = objB.extractArchive()
Sat May 25 19:55:43 2013
$ ls
./ Python-2.7.4/ car.py* ruby-1.8.6-p420.tar.gz
../ Python-2.7.4.tar.bz2 ruby-1.8.6-p420/
$ mv Python-2.7.4 Python-2.7.4-mine && mv ruby-1.8.6-p420 ruby-1.8.6-p420-mine
$ tar jxf Python-2.7.4.tar.bz2 && tar zxf ruby-1.8.6-p420.tar.gz
$ ls
./ Python-2.7.4/ Python-2.7.4.tar.bz2 ruby-1.8.6-p420/ ruby-1.8.6-p420.tar.gz
../ Python-2.7.4-mine/ car.py* ruby-1.8.6-p420-mine/
$ diff -ur Python-2.7.4 Python-2.7.4-mine && diff -ur ruby-1.8.6-p420 ruby-1.8.6-p420-mine
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment