Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
urepo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pipelines
tools
urepo
Commits
7e02d4c9
Commit
7e02d4c9
authored
1 year ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Resolve the --keep-last / "keep" asymmetry
parent
0329614c
No related branches found
No related tags found
No related merge requests found
Pipeline
#58626
passed with warnings
1 year ago
Stage: build
Stage: release
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+10
-6
10 additions, 6 deletions
README.md
urepo.go
+1
-1
1 addition, 1 deletion
urepo.go
with
11 additions
and
7 deletions
README.md
+
10
−
6
View file @
7e02d4c9
...
...
@@ -103,6 +103,10 @@ This will allow you to use, on your host, a command such as:
and have your packages automatically added to the repository at
/var/repo/NAME/.
Note that when urepo is run as a SSH forced command, some command-line
options are not available for security reasons (most importantly
*--root*
).
### Bundle format
On the wire, a bundle is just a tar file of .deb packages, without
...
...
@@ -116,7 +120,7 @@ Instead of always specifying release metadata options such as
configuration file named
*.urepo.conf*
in the repository directory.
This should be a YAML-encoded file where you can specify most of the
R
elease attributes:
r
elease
metadata
attributes:
*
*origin*
*
*suite*
...
...
@@ -124,14 +128,14 @@ Release attributes:
*
*label*
*
*description*
In addition two attributes control the behavior of urepo itself:
In addition
,
two attributes control the behavior of urepo itself:
*
*keep*
(equivalent to the
*--keep
-last
*
command-line option), number
o
f old package versions
to keep
*
*keep*
(equivalent to the
*--keep*
command-line option), number
of
o
ld versions of each package
to keep
*
*private-key*
(equivalent to the
*--private-key*
command-line
option), path to the armored GPG secret key to be used for signing
(without passphrase)
Urepo will look for such configuration in a file named
*.urepo.conf*
in the repository directory, as well as in
*~/.urepo
.
conf*
(useful
to
set a site-wide GPG secret key, for instance).
in the repository directory, as well as in
*~/.urepo
/
conf
ig
*
(useful
to
set a site-wide GPG secret key, for instance).
This diff is collapsed.
Click to expand it.
urepo.go
+
1
−
1
View file @
7e02d4c9
...
...
@@ -75,7 +75,7 @@ func loadConfig(path string, cfg *repoConfig) error {
}
func
(
c
*
repoConfig
)
setFlags
(
f
*
flag
.
FlagSet
)
{
f
.
IntVar
(
&
c
.
Keep
,
"keep
-last
"
,
c
.
Keep
,
"old package `versions` to keep"
)
f
.
IntVar
(
&
c
.
Keep
,
"keep"
,
c
.
Keep
,
"old package `versions` to keep"
)
f
.
StringVar
(
&
c
.
Origin
,
"origin"
,
c
.
Origin
,
"repository `origin`"
)
f
.
StringVar
(
&
c
.
Suite
,
"suite"
,
c
.
Suite
,
"repository `suite`"
)
f
.
StringVar
(
&
c
.
Codename
,
"codename"
,
c
.
Codename
,
"repository `codename` (defaults to the value of --repository)"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment