Commit d2f41ad4 authored by Lucas Nussbaum's avatar Lucas Nussbaum

upstream: Use /tmp as temp dir

parent d6e1daaf
......@@ -7,7 +7,7 @@ UPSTREAM_LIMIT=100000
module Upstream
def Upstream.get_watch(source, version, component)
d = `mktemp -d /dev/shm/getwatch.#{source}.XXXXXX`.chomp
d = `mktemp -d /tmp/getwatch.#{source}.XXXXXX`.chomp
raise unless $?.exitstatus == 0
version = version.gsub(/^[\d]+:/,'')
path = "#{DEB_MIRROR}/pool/#{component}/#{poolpath(source)}/#{source}_#{version}.dsc"
......@@ -61,7 +61,7 @@ module Upstream
version = version.gsub(/-[\da-zA-Z.~+]+$/,'')
# strip epoch
version = version.gsub(/^[\d]+:/,'')
d = `mktemp -d /dev/shm/watch.#{source}.XXXXXX`.chomp
d = `mktemp -d /tmp/watch.#{source}.XXXXXX`.chomp
FileUtils::mkdir_p("#{d}/debian/upstream")
File::open("#{d}/debian/watch", 'w') do |fd|
fd.print watch_file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment