Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
package-helpers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Andrew M. 'Leny' Lindley
package-helpers
Commits
b07ce8a0
Commit
b07ce8a0
authored
12 years ago
by
Ruben Rodriguez
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into dwyn
parents
7eff37eb
fb2f60fd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
makepackage
+3
-4
3 additions, 4 deletions
makepackage
makepending
+4
-2
4 additions, 2 deletions
makepending
with
7 additions
and
6 deletions
makepackage
+
3
−
4
View file @
b07ce8a0
...
@@ -44,10 +44,9 @@ UPSTREAM=$(grep 'export UPSTREAM=' helpers/config |sed 's/.*=//')
...
@@ -44,10 +44,9 @@ UPSTREAM=$(grep 'export UPSTREAM=' helpers/config |sed 's/.*=//')
WORKDIR
=
tmp/makepackage
WORKDIR
=
tmp/makepackage
REPOSITORY
=
$PWD
/repos/
$CODENAME
REPOSITORY
=
$PWD
/repos/
$CODENAME
HELPERS
=
$PWD
/helpers
HELPERS
=
$PWD
/helpers
if
!
[
-d
repos/
]
then
for
REPO
in
$(
git branch|sed
's/.* //;/master/d'
)
for
REPO
in
$(
git branch|sed
's/.* //;/master/d'
)
do
do
[
-d
$REPOSITORY
]
&&
continue
mkdir
-p
repos/
$REPO
/conf repos/
$REPO
/incoming
mkdir
-p
repos/
$REPO
/conf repos/
$REPO
/incoming
cat
<<
EOF
> repos/
$REPO
/conf/distributions
cat
<<
EOF
> repos/
$REPO
/conf/distributions
Origin: Trisquel
Origin: Trisquel
...
@@ -74,7 +73,6 @@ cd repos/$REPO
...
@@ -74,7 +73,6 @@ cd repos/$REPO
reprepro
-v
export
reprepro
-v
export
cd
../..
cd
../..
done
done
fi
disablescripts
(){
disablescripts
(){
# Disable service starter scripts
# Disable service starter scripts
...
@@ -132,7 +130,7 @@ EOF
...
@@ -132,7 +130,7 @@ EOF
[
$UPSTREAM
!=
hardy
-a
$UPSTREAM
!=
lucid
-a
$UPSTREAM
!=
maverick
]
&&
echo
"force-unsafe-io"
>
$CHROOT
/etc/dpkg/dpkg.cfg.d/02apt-speedup
[
$UPSTREAM
!=
hardy
-a
$UPSTREAM
!=
lucid
-a
$UPSTREAM
!=
maverick
]
&&
echo
"force-unsafe-io"
>
$CHROOT
/etc/dpkg/dpkg.cfg.d/02apt-speedup
$C
apt-get update
$C
apt-get update
[
$UPSTREAM
!=
hardy
]
&&
$C
apt-get
--force-yes
-y
install
eatmydata
[
$UPSTREAM
!=
hardy
]
&&
$C
apt-get
--force-yes
-y
install
eatmydata
$C
apt-get
--force-yes
-y
install
sysv-rc dpkg sysvinit-utils upstart
[
$UPSTREAM
!=
hardy
]
&&
$C
apt-get
--force-yes
-y
install
sysv-rc dpkg sysvinit-utils upstart
disablescripts
disablescripts
$C
apt-get
--force-yes
-y
dist-upgrade
$C
apt-get
--force-yes
-y
dist-upgrade
$C
apt-get
--force-yes
-y
install
devscripts build-essential liburi-perl python-setuptools pkgbinarymangler wget rpl aptitude quilt fakeroot ccache
$C
apt-get
--force-yes
-y
install
devscripts build-essential liburi-perl python-setuptools pkgbinarymangler wget rpl aptitude quilt fakeroot ccache
...
@@ -146,6 +144,7 @@ EOF
...
@@ -146,6 +144,7 @@ EOF
then
then
for
BIN
in
/bin/uname /usr/bin/arch
for
BIN
in
/bin/uname /usr/bin/arch
do
do
[
-f
$CHROOT
/
$BIN
]
||
continue
mv
$CHROOT
/
$BIN
$CHROOT
/
$BIN
.orig
mv
$CHROOT
/
$BIN
$CHROOT
/
$BIN
.orig
cat
<<
EOF
>
$CHROOT
/
$BIN
cat
<<
EOF
>
$CHROOT
/
$BIN
#!/bin/sh
#!/bin/sh
...
...
This diff is collapsed.
Click to expand it.
makepending
+
4
−
2
View file @
b07ce8a0
...
@@ -120,8 +120,10 @@ then
...
@@ -120,8 +120,10 @@ then
continue
continue
fi
fi
$TEST
git
--git-dir
=
$WD
/.git checkout
$DISTRO
cd
$WD
$TEST
git
--git-dir
=
$WD
/.git merge master
$TEST
git checkout
$DISTRO
$TEST
git merge master
cd
$TMP
echo
Upgrading
$current
at
$DISTRO
with
${
UPSTREAM
}
_
$upstream
1>&2
echo
Upgrading
$current
at
$DISTRO
with
${
UPSTREAM
}
_
$upstream
1>&2
echo
Running makepackage
$package
$DISTRO
at
$(
date
)
$LOGS
/
$DISTRO
-
$package
-
$(
date
+%Y%m%d
)
.log
echo
Running makepackage
$package
$DISTRO
at
$(
date
)
$LOGS
/
$DISTRO
-
$package
-
$(
date
+%Y%m%d
)
.log
echo
Running makepackage
$package
$DISTRO
at
$(
date
)
$LOGS
/
$DISTRO
-
$package
-
$(
date
+%Y%m%d
)
.log 1>&2
echo
Running makepackage
$package
$DISTRO
at
$(
date
)
$LOGS
/
$DISTRO
-
$package
-
$(
date
+%Y%m%d
)
.log 1>&2
...
...
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