mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-25 01:41:08 +00:00
Prefer /tmpfs an working directory.
This commit is contained in:
parent
c598d35031
commit
8a67e7b8e4
3
ack-sync
3
ack-sync
@ -53,6 +53,9 @@ def LogCall(command):
|
|||||||
def get_source(package, version, section):
|
def get_source(package, version, section):
|
||||||
assert section in ("main", "contrib", "non-free")
|
assert section in ("main", "contrib", "non-free")
|
||||||
|
|
||||||
|
if os.path.isdir("/tmpfs"):
|
||||||
|
workdir = "/tmpfs/ack-sync"
|
||||||
|
else
|
||||||
workdir = "/tmp/ack-sync"
|
workdir = "/tmp/ack-sync"
|
||||||
if not os.path.isdir(workdir):
|
if not os.path.isdir(workdir):
|
||||||
os.makedirs(workdir)
|
os.makedirs(workdir)
|
||||||
|
5
fakesync
5
fakesync
@ -61,7 +61,10 @@ def extract_upstream_version(debian_version):
|
|||||||
def get_source(package, version, section, bug_number, dist):
|
def get_source(package, version, section, bug_number, dist):
|
||||||
assert section in ("main", "contrib", "non-free")
|
assert section in ("main", "contrib", "non-free")
|
||||||
|
|
||||||
workdir = "/tmp/fakesync"
|
if os.path.isdir("/tmpfs"):
|
||||||
|
workdir = "/tmpfs/ack-sync"
|
||||||
|
else
|
||||||
|
workdir = "/tmp/ack-sync"
|
||||||
if not os.path.isdir(workdir):
|
if not os.path.isdir(workdir):
|
||||||
os.makedirs(workdir)
|
os.makedirs(workdir)
|
||||||
os.chdir(workdir)
|
os.chdir(workdir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user