File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
- # -*- rpm -*-
1
+ # -*- sh-shell: rpm -*-
2
2
#
3
3
# Licensed to the Apache Software Foundation (ASF) under one
4
4
# or more contributor license agreements. See the NOTICE file
Original file line number Diff line number Diff line change 1
- # -*- rpm -*-
1
+ # -*- sh-shell: rpm -*-
2
2
#
3
3
# Licensed to the Apache Software Foundation (ASF) under one
4
4
# or more contributor license agreements. See the NOTICE file
Original file line number Diff line number Diff line change 77
77
fi
78
78
run cd -
79
79
80
+ repositories=" /host/repositories"
80
81
package_initial=$( echo " ${PACKAGE} " | sed -e ' s/\(.\).*/\1/' )
81
- pool_dir=" /host/ repositories/${distribution} /pool/${code_name} /${component} /${package_initial} /${PACKAGE} "
82
+ pool_dir=" ${ repositories} /${distribution} /pool/${code_name} /${component} /${package_initial} /${PACKAGE} "
82
83
run mkdir -p " ${pool_dir} /"
83
84
run cp * .tar.* * .dsc * .deb " ${pool_dir} /"
85
+
86
+ run chown -R " $( stat --format " %u:%g" " ${repositories} " ) " " ${repositories} "
Original file line number Diff line number Diff line change 62
62
run mkdir -p ~ /rpmbuild/SRPMS
63
63
fi
64
64
65
- repository=" /host/repositories/${distribution} /${distribution_version} "
65
+ repositories=" /host/repositories"
66
+ repository=" ${repositories} /${distribution} /${distribution_version} "
66
67
rpm_dir=" ${repository} /${architecture} /Packages"
67
68
srpm_dir=" ${repository} /source/SRPMS"
68
69
run mkdir -p " ${rpm_dir} " " ${srpm_dir} "
129
130
130
131
run mv rpmbuild/RPMS/* /* " ${rpm_dir} /"
131
132
run mv rpmbuild/SRPMS/* " ${srpm_dir} /"
133
+
134
+ run chown -R " $( stat --format " %u:%g" " ${repositories} " ) " " ${repositories} "
You can’t perform that action at this time.
0 commit comments