-
I have a bash script that does:
apt-get source $PACKAGE
I need to CD into the dir it creates. I am happy to re-write it in py if I could figure out how to use py-apt.
so... how do I figure out what dir it is going to create?
also, how would I 'apt-get source $PACKAGE' using py-apt?.
2008-11-25 07:24:30 UTC by carlfk
-
36 >>> f=apt.CacheFile(apt.OpTextProgress())
>>> f=apt.CacheFile(apt.OpTextProgress())
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'CacheFile'.
2008-11-25 07:01:42 UTC by carlfk
-
With python-2.5.1 running on an ubuntu feisty box:
root@mirror:/tmp/apt# python
Python 2.5.1 (r251:54863, May 2 2007, 16:27:44)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import apt_inst
>>> apt_inst.debExtractArchive(open("/tmp/apt/uqm_0.5.0-2ubuntu1_amd64.deb"),"/tmp/cdr")
1
So far so good, but if I look...
2007-07-30 22:23:56 UTC by nobody
-
daniel committed patchset 17 of module python-apt to the python-apt CVS repository, changing 1 files.
2000-03-05 12:52:19 UTC by daniel
-
daniel committed patchset 16 of module python-apt to the python-apt CVS repository, changing 1 files.
2000-02-19 13:25:53 UTC by daniel
-
daniel committed patchset 15 of module python-apt to the python-apt CVS repository, changing 2 files.
2000-02-18 18:29:15 UTC by daniel
-
daniel committed patchset 14 of module python-apt to the python-apt CVS repository, changing 1 files.
2000-02-16 16:31:23 UTC by daniel
-
daniel committed patchset 13 of module python-apt to the python-apt CVS repository, changing 3 files.
2000-02-16 16:29:06 UTC by daniel
-
daniel committed patchset 12 of module python-apt to the python-apt CVS repository, changing 1 files.
2000-02-16 16:28:52 UTC by daniel
-
daniel committed patchset 11 of module python-apt to the python-apt CVS repository, changing 2 files.
2000-02-16 03:58:50 UTC by daniel