No longer require repo argument
This commit is contained in:
parent
fffc1e8cd1
commit
aaff56cea3
2
PKGBUILD
2
PKGBUILD
@ -1,7 +1,7 @@
|
|||||||
# Maintainer: Eric Torres <erictorres4@protonmail.com>
|
# Maintainer: Eric Torres <erictorres4@protonmail.com>
|
||||||
pkgname=packaging-scripts
|
pkgname=packaging-scripts
|
||||||
pkgver=1.5.1
|
pkgver=1.5.1
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="A set of helper scripts for handling Arch Linux packages"
|
pkgdesc="A set of helper scripts for handling Arch Linux packages"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
|
7
bin/pug2
7
bin/pug2
@ -73,16 +73,9 @@ if __name__ == "__main__":
|
|||||||
default=DEFAULT_FILENAME,
|
default=DEFAULT_FILENAME,
|
||||||
help="alternative filename to upload as",
|
help="alternative filename to upload as",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
|
||||||
"repository",
|
|
||||||
choices=pacman.list_configured_repos(),
|
|
||||||
help="the repository to operate on",
|
|
||||||
metavar="repo",
|
|
||||||
)
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
filename = args.filename
|
filename = args.filename
|
||||||
repo = args.repository
|
|
||||||
|
|
||||||
# Run process that lists packages
|
# Run process that lists packages
|
||||||
packages = subprocess.run([PACMAN_CMD, "-Qqem"], capture_output=True).stdout
|
packages = subprocess.run([PACMAN_CMD, "-Qqem"], capture_output=True).stdout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user