~ubuntu-branches/debian/sid/apt-dater/sid

« back to all changes in this revision

Viewing changes to src/exec.c

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2015-07-07 17:33:08 UTC
  • mfrom: (1.2.5)
  • Revision ID: package-import@ubuntu.com-20150707173308-7rkjhxnlq7gsykif
Tags: 1.0.2-1
* New upstream release.
  - Set the default of the opt-cmd-flags host option to "-t" since this is
    essential.
    Closes: #776392
  - Add new build dependency vim-common.
* Replace screen dependency with tmux.
* Create apt-dater group for session sharing.
* Add missing directories.
* Make the build reproducible.
  Closes: #789648
* Drop automake and autoconf build dependencies.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 *   Thomas Liske <liske@ibh.de>
5
5
 *
6
6
 * Copyright Holder:
7
 
 *   2008-2014 (C) IBH IT-Service GmbH [https://www.ibh.de/apt-dater/]
 
7
 *   2008-2015 (C) IBH IT-Service GmbH [https://www.ibh.de/apt-dater/]
8
8
 *
9
9
 * License:
10
10
 *   This program is free software; you can redistribute it and/or modify
23
23
 */
24
24
 
25
25
#include "apt-dater.h"
26
 
#include "screen.h"
 
26
#include "ttymux.h"
27
27
#include "exec.h"
28
28
#include "stats.h"
29
29
#include "parsecmd.h"
115
115
 he.action = "upgrade";
116
116
 he.data = NULL;
117
117
 
118
 
 gchar **screen_argv = screen_new(n, detached);
 
118
 gchar **screen_argv = TTYMUX_NEW(n, detached);
119
119
 
120
120
 argv = (gchar **) g_malloc0(sizeof(gchar *) * (g_strv_length(screen_argv) + 2));
121
121
 for(i = 0; i < g_strv_length(screen_argv); i++)
143
143
 }
144
144
 
145
145
#ifdef FEAT_HISTORY
146
 
 if(!detached && n->parse_result && !screen_get_sessions(n)) {
 
146
 if(!detached && n->parse_result && !TTYMUX_GET_SESSIONS(n)) {
147
147
    n->parse_result = FALSE;
148
 
    return history_ts_failed(n);
 
148
    return history_ts_failed(cfg, n);
149
149
 }
150
150
#endif
151
151
 
171
171
 he.action = "install";
172
172
 he.data = package;
173
173
 
174
 
 gchar **screen_argv = screen_new(n, detached);
 
174
 gchar **screen_argv = TTYMUX_NEW(n, detached);
175
175
 
176
176
 argv = (gchar **) g_malloc0(sizeof(gchar *) * (g_strv_length(screen_argv) + 2));
177
177
 for(i = 0; i < g_strv_length(screen_argv); i++)
199
199
 }
200
200
 
201
201
#ifdef FEAT_HISTORY
202
 
 if(!detached && n->parse_result && !screen_get_sessions(n)) {
 
202
 if(!detached && n->parse_result && !TTYMUX_GET_SESSIONS(n)) {
203
203
    n->parse_result = FALSE;
204
 
    return history_ts_failed(n);
 
204
    return history_ts_failed(cfg, n);
205
205
 }
206
206
#endif
207
207
 
221
221
 he.action = "connect";
222
222
 he.data = NULL;
223
223
 
224
 
 gchar **screen_argv = screen_new(n, detached);
 
224
 gchar **screen_argv = TTYMUX_NEW(n, detached);
225
225
 
226
226
 argv = (gchar **) g_malloc0(sizeof(gchar *) * (g_strv_length(screen_argv) + 2));
227
227
 for(i = 0; i < g_strv_length(screen_argv); i++)
260
260
 he.action = "transfer";
261
261
 he.data = NULL;
262
262
 
263
 
 gchar **screen_argv = screen_new(n, FALSE);
 
263
 gchar **screen_argv = TTYMUX_NEW(n, FALSE);
264
264
 
265
265
 argv = (gchar **) g_malloc0(sizeof(gchar *) * (g_strv_length(screen_argv) + 2));
266
266
 for(i = 0; i < g_strv_length(screen_argv); i++)