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