这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Grimler91
Copy link
Member

Most important changes:

  • Use more hashes than sha256
  • Allow for having for example dists/termux/stable, dists/termux/debug, dists/termux/unstable, termux-apt-repo automatically looks for subfolders with debs in input_folder.
  • Allow for only updating one of said subfolders in the repo, debs in termux/unstable can be updated without touching termux/stable (Release file is created based on all debs in the folder tree, not just the ones added now)
  • Add an option --use-hard-links to use hard links instead of copying debs

Also use argparse to handle command line arguments, update hints to user about how to enable repo and various small changes.

Use md5, sha1, sha256 and sha512 instead of just sha256
Use os.path.join instead of path1+"/"+path2. rm
output_path/dists/DISTRIBUTION/COMPONENT instead of output_path/*.
The script looks for .deb files in subfolders and takes the subfolder name as
COMPONENT.
.deb files located in the input_path directory (and not in a subfolder) are
still put into the "extras" component folder.

When updating the Release file, all component directories are taken into
account, so it's possible to only update for example termux/debug and keeping
termux/stable as is.
Don't use [trusted=yes] and remove suggestion to install
apt-transport-https (no longer needed)
They were previously deleted when output_folder was deleted
Uses hard links instead of copying deb files to output folder.
Won't work in termux but can save some disk space on a normal computer.
@Grimler91
Copy link
Member Author

The Codename:-field in the Release file needs to be changed as well, otherwise apt gives a warning

@fornwall fornwall merged commit fbd8dfd into termux:master Oct 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants