Bug 39582 - apt-mirror: Removes {pre,post}up.sh.gpg and dists/
apt-mirror: Removes {pre,post}up.sh.gpg and dists/
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - Repository administration
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Philipp Hahn
Stefan Gohmann
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-10-19 08:28 CEST by Philipp Hahn
Modified: 2017-04-04 18:29 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.046
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
Keep {pre,post}up.sh.gpg files ; dists/=TODO (791 bytes, text/plain)
2015-10-19 08:28 CEST, Philipp Hahn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2015-10-19 08:28:14 CEST
Created attachment 7214 [details]
Keep {pre,post}up.sh.gpg files ; dists/=TODO

"univention-repository-updater net" uses "apt-mirror", which creates "/var/lib/univention-repository/var/lib/clean.sh" to cleanup any files which are not available on the mirror.
Currently this removes the signed {pre,post}up.sh.gpg files and the dists/ hierarchy, which is required for the "UCS Net Installer":
rm -f '4.1/maintained/4.1-0/dists/ucs410/main/debian-installer/binary-amd64/Packages'
rm -f '4.1/maintained/4.1-0/dists/ucs410/main/debian-installer/binary-amd64/Packages.gz'
rm -f '4.1/maintained/4.1-0/dists/ucs410/main/binary-amd64/Packages'
echo -n .
rm -f '4.1/maintained/4.1-0/dists/ucs410/main/binary-amd64/Release'
rm -f '4.1/maintained/4.1-0/dists/ucs410/main/binary-amd64/Packages.gz'
rm -f '4.1/maintained/4.1-0/dists/ucs410/Release'
rm -f '4.1/maintained/4.1-0/all/preup.sh.gpg'
rm -f '4.1/maintained/4.1-0/all/obsolete.txt'
rm -f '4.1/maintained/4.1-0/all/obsolete_1.0-all.deb'
rm -f '4.1/maintained/4.1-0/all/postup.sh.gpg'

Detected by "ucs-test/09/79mirror-clean" while working on Bug #39305 and Bug #39306
Comment 1 Philipp Hahn univentionstaff 2015-10-20 12:21:06 CEST
r64620 | Bug #39306 test: local repository tests
 Ignore .pgp for now until apt-mirror bug is fixed.

Package: ucs-test
Version: 6.0.10-1.1269.201510201217
Branch: ucs_4.1-0
Comment 2 Philipp Hahn univentionstaff 2017-01-17 14:55:26 CET
r17052 | Bug #43339,Bug #39582,Bug #28048: apt-mirror
 .gpg and **/dists/ are no longer removed

Package: apt-mirror
Version: 0.5.1-1A~4.2.0.201701171441
Branch: ucs_4.2-0

r75869 | Bug #43339,Bug #39582,Bug #28048: apt-mirror CL
Comment 3 Stefan Gohmann univentionstaff 2017-03-21 08:47:00 CET
Test: OK: dists directory and gpg files are available

Changelog: OK
Comment 4 Stefan Gohmann univentionstaff 2017-04-04 18:29:44 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

If this error occurs again, please use "Clone This Bug".