-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapt-repo.spec
226 lines (178 loc) · 8.86 KB
/
apt-repo.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
Name: apt-repo
Version: 1.4.4
Release: alt1
Summary: Script for manipulation APT repository list
License: GPL-3.0+
Group: System/Configuration/Packaging
URL: http://altlinux.org/apt-repo
Packager: Andrey Cherepanov <[email protected]>
BuildArch: noarch
Source: %name-%version.tar
Requires: apt
Requires: curl
%description
The apt-repo script allow to show, add and remove APT repositories
specified by address in sources.list(5) format, URL with optional
component, branch name or task number.
%prep
%setup
%install
install -Dm755 %name %buildroot%_bindir/%name
install -Dpm 644 %name.8 %buildroot%_man8dir/%name.8
install -Dpm 644 %name.sysconfig %buildroot%_sysconfdir/sysconfig/%name
%find_lang %name
%files -f %name.lang
%doc TODO
%config(noreplace) %_sysconfdir/sysconfig/%name
%_bindir/%name
%_man8dir/%name.8*
%changelog
* Wed May 22 2024 Andrey Cherepanov <[email protected]> 1.4.4-alt1
- Added p11 branch and priority_distbranch for p10, p11 and sisyphus.
* Sun May 28 2023 Vitaly Lipatov <[email protected]> 1.4.3-alt1
- Replaced print ; exit 1 with die.
- Replaced print with warn.
- Add trailing slash to all warn calls.
* Fri Apr 14 2023 Vitaly Lipatov <[email protected]> 1.4.2-alt1
- Add -L to curl (allow redirect): fixes bug with install archived tasks.
* Thu Jan 19 2023 Andrey Cherepanov <[email protected]> 1.4.1-alt1
- Added altlinuxclub.p10 repository (ALT #44065).
- Removed obsoleted egrep.
* Sun Jan 02 2022 Andrey Cherepanov <[email protected]> 1.4.0-alt1
- Add command upgrade with optional including tasks.
* Tue Dec 21 2021 Andrey Cherepanov <[email protected]> 1.3.18-alt1
- Add autoimports.p10 branch support.
* Wed Jul 28 2021 Andrey Cherepanov <[email protected]> 1.3.17-alt1
- Fix check branch with disttag in short form.
- Remove disttag macro file during apt-repo rm.
* Fri Jul 23 2021 Andrey Cherepanov <[email protected]> 1.3.16-alt1
- Add p10 branch.
* Mon Nov 16 2020 Andrey Cherepanov <[email protected]> 1.3.15-alt1
- Add https to allowed apt protocols.
* Sun Nov 08 2020 Andrey Cherepanov <[email protected]> 1.3.14-alt1
- Ignore list and install *-checkinstall packages from task (ALT #39221).
* Sat Jul 04 2020 Anton Midyukov <[email protected]> 1.3.13-alt1
- Added armh repo support.
* Tue Jun 09 2020 Andrey Cherepanov <[email protected]> 1.3.12-alt1
- Fix official source for c8 branch.
* Mon Mar 30 2020 Andrey Cherepanov <[email protected]> 1.3.11-alt1
- Add new repositories: c8.1, autoimports.p9 and altlinuxclub.p9.
- Use proxy from APT for network operations (thanks asy@) (ALT #38294).
- Set optional Arepo ignoring in file /etc/sysconfig/apt-repo (ALT #34167).
- Fix License tag according to SPDX.
* Mon May 20 2019 Andrey Cherepanov <[email protected]> 1.3.10-alt1
- Add p9 branch.
- Add --dry-run mode (ALT #35726).
- Support to add archive of branch (ALT #30841).
- Show and remove all non-commented and non-empty sources (ALT #30008).
- Add key [<branch_name>] in addition to [updates] for branch source (ALT #32434).
- Add arepo repository for added file: source.
- Check task existance for apt-repo list task (ALT #34222).
- Set new format only URL contains at least 3 parts.
- Add new command `set` to remove all exising sources and add specified branch.
- Ignore -devel* packages in task operation.
* Tue Feb 28 2017 Andrey Cherepanov <[email protected]> 1.3.9-alt1
- Add braches c8 and altlinuxclub.p8
* Tue Oct 11 2016 Ivan Zakharyaschev <[email protected]> 1.3.8-alt1
- apt-repo test: do not confuse "remote" package names with local dirs/files
* Wed Jun 08 2016 Andrey Cherepanov <[email protected]> 1.3.7-alt1
- Support https://www.altlinux.org/Autoimports sources
* Mon Jun 06 2016 Andrey Cherepanov <[email protected]> 1.3.6-alt1
- Fix process writing to file with permission denied
* Mon May 9 2016 Ivan Zakharyaschev <[email protected]> 1.3.5-alt1
- handle both cases without arepo: none (noarch) or empty (ALT #31577).
- "apt-repo test [task] '' pkg1 ..." will install the packages without
modifying APT repos. (With --hsh-apt-config, this feature is useful
to do an install check for a package in a minimal system.)
* Mon May 09 2016 Ivan Zakharyaschev <[email protected]> 1.3.4-alt1
- task_has_arepo(): check whether plan/arepo-add-x86_64-i586 is not
empty (ALT #31577).
- get rid of NO_TASK_AREPO_HACK environment variable (now, as
task_has_arepo should work correctly).
* Wed May 04 2016 Andrey Cherepanov <[email protected]> 1.3.3-alt1
- Fix remove all branches or tasks
* Sun May 01 2016 Andrey Cherepanov <[email protected]> 1.3.2-alt1
- Fix enexpected warning (ALT #32045)
* Fri Apr 29 2016 Andrey Cherepanov <[email protected]> 1.3.1-alt1
- Remove arepo task source even for removed task
- Fix check length of tested package list
* Mon Apr 25 2016 Andrey Cherepanov <[email protected]> 1.3.0-alt1
- Add p8 branch (ALT #32006)
- Add support for altlinuxclub sources
- Add arepo repo for task only if it exists (ALT #31577)
- Use new format of source (ALT #31974)
- Optional package name(s) support in apt-repo test
- Remove duplicate package names in task list
- Do not use strict extension for compessed man page
* Wed Dec 02 2015 Ivan Zakharyaschev <[email protected]> 1.2.4-alt1
- prepare a smaller basesystem in hasher as girar's install check does
(rather than the default one with rpm-build). This will allow to
catch the same bugs as in girar, like that one:
https://bugzilla.altlinux.org/show_bug.cgi?id=31576 .
* Tue Dec 1 2015 Ivan Zakharyaschev <[email protected]> 1.2.3-alt1
- do not proceed if hsh --initroot-only hasn't completed successfully
* Mon Nov 30 2015 Ivan Zakharyaschev <[email protected]> 1.2.2-alt1
- implement the support for hasher (for "update" and "test" commands)
if an explicit apt.conf is given.
(TODO: update the manpage; apt-repo --help is already up-to-date)
+ "no task arepo" hack: if NO_TASK_AREPO_HACK is not empty,
the x86_64-i586 source is not added for a task.
(Otherwise "update" and "test" fails on such tasks.)
(TODO: come up with a clean fix for such tasks.)
- warn about non-expanded tilde in APT_CONFIG, and give info about it.
- minor corrections in the new Perl code (from 1.2.1) for querying `apt-config`.
* Mon Nov 30 2015 Ivan Zakharyaschev <[email protected]> 1.2.1-alt1
- added the ability to manipulate arbitrary local sources.list
by relying on `apt-config` and honoring APT_CONFIG (ALT#31385).
- manpage: fix formattting bugs (closes: ALT#31562).
* Thu Nov 07 2013 Andrey Cherepanov <[email protected]> 1.2.0-alt1
- Add `apt-repo test task <num>` for install all task packages
(except *-debuginfo)
- Get package list from task
- Add t7 and c7 in available repository list
* Tue Oct 29 2013 Andrey Cherepanov <[email protected]> 1.1.6-alt1
- Add task source with Arepo on x86_64
* Fri Aug 30 2013 Andrey Cherepanov <[email protected]> 1.1.5-alt1
- Add copy:// protocol support in sources (ALT #29071)
- Fix man page:
- Move man page to section 8 (System administration commands and daemons)
- Fix OS name in section name (Linux instead of BSD)
- Add copy:// protocol support
- Remove trailing whitespace and empty lines
* Sat May 25 2013 Andrey Cherepanov <[email protected]> 1.1.4-alt1
- Set common key `update` for all branches for easy migration to newer
branch because there is no branch-specific key without apt-conf update
* Thu May 23 2013 Andrey Cherepanov <[email protected]> 1.1.3-alt1
- Add arepo 2.0 source too on adding x86_64 branch
- Show only one warning on non-existing source removal
- Add official keys for p6 and p7 brahches
- Display warning about unsupported command
* Sat Apr 27 2013 Andrey Cherepanov <[email protected]> 1.1.2-alt1
- Add support for branches t6, p7, t7
- Use apt-repo clean instead clear
* Tue Nov 20 2012 Andrey Cherepanov <[email protected]> 1.1.1-alt1
- Add apt-repo clear command to remove all cdrom and task repositories
- Fix add cdrom source if it exist in list
- Check for wrong type on mass source deletion
- Remove error message on empty deletion
* Tue Nov 29 2011 Andrey Cherepanov <[email protected]> 1.1.0-alt1
- Remove man page from program to separate file
- Support remove only specified type of sources
- Fix cdrom source remove
* Mon May 16 2011 Andrey Cherepanov <[email protected]> 1.0.3-alt1
- Describe source definition in help
- Add keyword `all` in tm command to remove all active sources
- Fix use source as one string
* Mon May 09 2011 Andrey Cherepanov <[email protected]> 1.0.2-alt1
- Make error messages more informational (closes: #25417)
- Inform about missed task number
- Show all available branch names
- Complete documentation
- Support sources.list(5) tokens in command line
- Pass all arguments as parts of source line (closes: #25418)
- Support quick forms of source: known branch name or number for task
- Fix URL for Sisyphus. Support absolute pathname for hasher repo.
* Tue Apr 19 2011 Andrey Cherepanov <[email protected]> 1.0.1-alt1
- Fix arch definition on x86_64 (closes: #25464)
* Thu Mar 31 2011 Andrey Cherepanov <[email protected]> 1.0-alt1
- Initial build in Sisyphus