Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
devtools
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
archlinux
devtools
Commits
8bedb89f
Commit
8bedb89f
authored
12 years ago
by
Pierre Schmitz
Browse files
Options
Downloads
Patches
Plain Diff
Add a version number to each chroot so we can tell the user when a rebuild is needed
parent
c7cda473
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mkarchroot.in
+5
-3
5 additions, 3 deletions
mkarchroot.in
with
5 additions
and
3 deletions
mkarchroot.in
+
5
−
3
View file @
8bedb89f
...
...
@@ -10,6 +10,8 @@
m4_include
(
lib/common.sh
)
CHROOT_VERSION
=
'v2'
FORCE
=
'n'
RUN
=
''
NOCOPY
=
'n'
...
...
@@ -181,6 +183,8 @@ if [[ -n $RUN ]]; then
#Sanity check
if
[[
!
-f
"
${
working_dir
}
/.arch-chroot"
]]
;
then
die
"'
${
working_dir
}
' does not appear to be a Arch chroot."
elif
[[
$(
cat
"
${
working_dir
}
/.arch-chroot"
)
!=
${
CHROOT_VERSION
}
]]
;
then
die
"'
${
working_dir
}
' is not compatible with
${
APPNAME
}
version
${
CHROOT_VERSION
}
. Please rebuild."
fi
chroot_lock
...
...
@@ -235,8 +239,6 @@ else
copy_hostconf
if
[[
!
-e
"
${
working_dir
}
/.arch-chroot"
]]
;
then
date
+%s
>
"
${
working_dir
}
/.arch-chroot"
fi
echo
"
${
CHROOT_VERSION
}
"
>
"
${
working_dir
}
/.arch-chroot"
# }}}
fi
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