Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 56 lines (38 sloc) 2.423 kB
d16962b More clean-up
Bernhard R. Link authored
1 #ifndef REPREPRO_UPGRADELIST_H
2 #define REPREPRO_UPGRADELIST_H
6f17702 Trying different approach to upgrading...
Bernhard R. Link authored
3
d16962b More clean-up
Bernhard R. Link authored
4 #ifndef REPREPRO_PACKAGES_H
6f17702 Trying different approach to upgrading...
Bernhard R. Link authored
5 #include "packages.h"
eafea02 some more upgrading code...
Bernhard R. Link authored
6 #endif
d16962b More clean-up
Bernhard R. Link authored
7 #ifndef REPREPRO_APTMETHOD_H
977b53b replaced downloadlist with downloachcache
Bernhard R. Link authored
8 #include "aptmethod.h"
9 #endif
d16962b More clean-up
Bernhard R. Link authored
10 #ifndef REPREPRO_DOWNLOADCACHE_H
977b53b replaced downloadlist with downloachcache
Bernhard R. Link authored
11 #include "downloadcache.h"
eafea02 some more upgrading code...
Bernhard R. Link authored
12 #endif
6f17702 Trying different approach to upgrading...
Bernhard R. Link authored
13
14 /* Things for making decisions what to upgrade and what not */
15
ee1b89f tidy up upgradelist.c and report errors properly
Bernhard R. Link authored
16 typedef enum { UD_ERROR, UD_NO, UD_UPGRADE, UD_HOLD } upgrade_decision;
6f17702 Trying different approach to upgrading...
Bernhard R. Link authored
17
9ec2b92 extended preperations for packet filtering and tidied up the upgradel…
Bernhard R. Link authored
18 typedef upgrade_decision upgrade_decide_function(void *privdata, const char *package,const char *old_version,const char *new_version,const char *newcontrolchunk);
6f17702 Trying different approach to upgrading...
Bernhard R. Link authored
19
9ec2b92 extended preperations for packet filtering and tidied up the upgradel…
Bernhard R. Link authored
20 upgrade_decision ud_always(void *privdata, const char *p,const char *ov,const char *nv,const char *nc);
6f17702 Trying different approach to upgrading...
Bernhard R. Link authored
21
22 /* The main part: */
23
b356965 First more or less working code of automatic updating...
Bernhard R. Link authored
24 struct target;
185a64d add logging support
Bernhard R. Link authored
25 struct logger;
b356965 First more or less working code of automatic updating...
Bernhard R. Link authored
26 struct upgradelist;
6f17702 Trying different approach to upgrading...
Bernhard R. Link authored
27
3d999c0 make splint happier
Bernhard R. Link authored
28 retvalue upgradelist_initialize(struct upgradelist **ul,/*@dependent@*/struct target *target,const char *dbdir);
29 retvalue upgradelist_free(/*@only@*/struct upgradelist *upgrade);
6f17702 Trying different approach to upgrading...
Bernhard R. Link authored
30
ab2ecbd Add a magic - update rule to downgrade or remove packages no longer f…
Bernhard R. Link authored
31 void upgradelist_dump(struct upgradelist *upgrade);
b356965 First more or less working code of automatic updating...
Bernhard R. Link authored
32 retvalue upgradelist_listmissing(struct upgradelist *upgrade,filesdb files);
eafea02 some more upgrading code...
Bernhard R. Link authored
33
977b53b replaced downloadlist with downloachcache
Bernhard R. Link authored
34 /* Take all items in 'filename' into account, and remember them coming from 'method' */
e072a94 some Ctrl-C and other signal supporting stuff
Bernhard R. Link authored
35 retvalue upgradelist_update(struct upgradelist *upgrade,/*@dependent@*/struct aptmethod *method,const char *filename,upgrade_decide_function *predecide,void *decide_data);
b356965 First more or less working code of automatic updating...
Bernhard R. Link authored
36
4595228 new pull and checkpull actions
Bernhard R. Link authored
37 /* Take all items in source into account */
e072a94 some Ctrl-C and other signal supporting stuff
Bernhard R. Link authored
38 retvalue upgradelist_pull(struct upgradelist *upgrade,struct target *source,upgrade_decide_function *predecide,void *decide_data,const char *dbdir);
4595228 new pull and checkpull actions
Bernhard R. Link authored
39
ab2ecbd Add a magic - update rule to downgrade or remove packages no longer f…
Bernhard R. Link authored
40 /* mark all packages as deleted, so they will vanis unless readded or reholded */
41 retvalue upgradelist_deleteall(struct upgradelist *upgrade);
42
b356965 First more or less working code of automatic updating...
Bernhard R. Link authored
43 //TODO add a function to reduce data-load by removing anything not needed
44 //any longer. (perhaps with a flag to remove all packages that are no
45 //longer available upstream)
46
977b53b replaced downloadlist with downloachcache
Bernhard R. Link authored
47 /* request all wanted files refering the methods given before */
af02265 remove force option
Bernhard R. Link authored
48 retvalue upgradelist_enqueue(struct upgradelist *upgrade,struct downloadcache *cache,filesdb filesdb);
b356965 First more or less working code of automatic updating...
Bernhard R. Link authored
49
185a64d add logging support
Bernhard R. Link authored
50 retvalue upgradelist_install(struct upgradelist *upgrade,/*@null@*/struct logger *,const char *dbdir,filesdb files,references refs,bool_t ignoredelete, struct strlist *dereferencedfilekeys);
eafea02 some more upgrading code...
Bernhard R. Link authored
51
531cf25 add predelete action
Bernhard R. Link authored
52 /* remove all packages that would either be removed or upgraded by an upgrade */
185a64d add logging support
Bernhard R. Link authored
53 retvalue upgradelist_predelete(struct upgradelist *upgrade,/*@null@*/struct logger *logger,const char *dbdir,references refs,struct strlist *dereferencedfilekeys);
531cf25 add predelete action
Bernhard R. Link authored
54
eafea02 some more upgrading code...
Bernhard R. Link authored
55 #endif
Something went wrong with that request. Please try again.