updated: README.md;renamed: genPkgRel.sh;fix: del
This commit is contained in:
parent
834651e6ef
commit
5719a5c9de
@ -10,6 +10,7 @@ __Warning! This software is still under development and is not intended for stab
|
||||
- [x] create del feature
|
||||
- [ ] multiple repositories feature
|
||||
- [ ] signing repositories using GPG
|
||||
- [ ] make simple way to edit repository info in release file
|
||||
|
||||
## About
|
||||
`Debrepo` is a software tool designed for creating and managing Debian repositories for `*.deb` packages, providing a lightweight and user-friendly alternative to more complex tools like `reprepo` or `aptly`. While these alternatives may offer more advanced features, Debrepo focuses on providing essential functionality and ease of use for repository management, allowing users to easily add, remove, and update packages within their repositories. With Debrepo, users can efficiently manage their Debian repositories without the unnecessary complexity of more advanced tools.
|
||||
|
4
debrepo
4
debrepo
@ -11,12 +11,14 @@ if [ "$1" = "add" ] || [ "$1" = "-a" ] || [ "$1" = "--add" ]; then
|
||||
# copy deb file to repo folder structure
|
||||
cp "./$2" "./apt-repo/pool/main/"
|
||||
# generate package and release file
|
||||
$DIR/scripts/addPackage.sh $2 && echo "debrepo: package $2 was successfully added"
|
||||
$DIR/scripts/genPkgRel.sh $2 && echo "debrepo: package $2 was successfully added"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "$1" = "del" ] || [ "$1" = "-d" ] || [ "$1" = "--del" ]; then
|
||||
rm -i "./apt-repo/pool/main/$2" && echo "debrepo: package $2 was successfully removed"
|
||||
# generate package and release file
|
||||
$DIR/scripts/genPkgRel.sh $2 && echo "debrepo: repository was successfully updated"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user