Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
fbe26c92
Commit
fbe26c92
authored
Jul 29, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lbu: remove packages.list if exist
fixes
http://redmine.alpinelinux.org/issues/show/94
parent
d555c2cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
lbu.in
lbu.in
+8
-2
No files found.
lbu.in
View file @
fbe26c92
...
...
@@ -233,6 +233,12 @@ cmd_package() {
tmppkg
=
"$tmpdir/$(basename $pkg)"
cd
"${ROOT:-/}"
#
remove
old
package
.
list
if
[
-
f
etc
/
lbu
/
packages
.
list
&&
-
f
var
/
lib
/
apk
/
world
];
then
echo
"Note: Removing /etc/lbu/packages.list."
echo
" /var/lib/apk/world will be used."
rm
-
f
etc
/
lbu
/
packages
.
list
fi
currentlist
=$(
apk
audit
--
backup
-
q
)
if
[
-
f
var
/
lib
/
apk
/
world
];
then
currentlist
=
"$currentlist var/lib/apk/world"
...
...
@@ -391,10 +397,10 @@ cmd_commit() {
}'
|
xargs
rm
2
>/
dev
/
null
#
remove
obsolete
file
.
some
older
version
of
alpine
needs
this
#
to
be
ble
to
upgrade
#
to
be
a
ble
to
upgrade
if
[
-
z
"$DRYRUN"
]
&&
[
-
f
$
mnt
/
packages
.
list
];
then
echo
"Note: Removing packages.list from $(basename $mnt)."
echo
"
$PACKAGES_LIST
will be used."
echo
"
/var/lib/apk/world
will be used."
rm
-
f
$
mnt
/
packages
.
list
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment