From 978f2ab87f6eee1e16f6659959597b892137fa5b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 23 Nov 2018 09:03:21 +0100 Subject: extract-link-dependencies: bugfixes --- extract-link-dependencies | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'extract-link-dependencies') diff --git a/extract-link-dependencies b/extract-link-dependencies index 38ea1c5..787fbc2 100755 --- a/extract-link-dependencies +++ b/extract-link-dependencies @@ -89,8 +89,8 @@ case $(hostname) in done ;; 'buildmaster.archlinux32.org') # on the buildmaster - cd ~/builder - . lib/load-configuration + base_dir=~/builder + . ~/builder/lib/load-configuration mysql_load_min_and_max_versions { printf 'SET @link_dep_id = (' @@ -110,7 +110,8 @@ case $(hostname) in printf '`architecture` VARCHAR(4),' printf 'UNIQUE KEY `content`(`it`,`kind`,`pkgname`,`epoch`,`pkgver`,`pkgrel`,`sub_pkgrel`,`architecture`)' printf ');\n' - printf 'LOAD DATA LOCAL INFILE "../so-todos" INTO TABLE `x`;\n' + printf 'LOAD DATA LOCAL INFILE "%s" INTO TABLE `x`;\n' \ + ~/so-todos printf 'INSERT IGNORE INTO `install_targets`(`name`) SELECT `x`.`it` FROM `x`;\n' printf 'SELECT row_count();\n' printf 'INSERT IGNORE INTO `install_target_providers`(' -- cgit v1.2.3-70-g09d2