[SCM] hydrogen-drumkits/master: added option to download ALL packages
umlaeute at users.alioth.debian.org
umlaeute at users.alioth.debian.org
Thu Sep 24 08:17:10 UTC 2015
The following commit has been merged in the master branch:
commit 0c51121dc16ca7926671b4b4d80826b1e3f0189e
Author: IOhannes m zmölnig <zmoelnig at iem.at>
Date: Thu Sep 24 10:17:00 2015 +0200
added option to download ALL packages
useful for inspection of package contents.
this must not be used to to generate an upstream tarball to be
redistributed by Debian (as it will include data that is not redistributable)
diff --git a/debian/get-orig-source.py b/debian/get-orig-source.py
index 013708b..e96a8b4 100755
--- a/debian/get-orig-source.py
+++ b/debian/get-orig-source.py
@@ -332,6 +332,7 @@ def print_foo(objs):
print("%s (%s)\n" % (o['name'], o['url']))
def pkg_drumkits(conf):
+ addall=conf.add_all_regardless_of_license
# list of already packaged drumkits
packd=get_packagedDrumkitsInfo(conf.pkgdir)
# list of available (online) drumkits
@@ -351,7 +352,7 @@ def pkg_drumkits(conf):
distribute=None
print("=================")
print_dict(pkg)
- if (distribute is None) and interactive:
+ if (distribute is None) and interactive and not addall:
while distribute is None:
try:
dis=raw_input("Add drumkit '%s' to package? [y/n/^D to skip] " % (pkg.get('name')))
@@ -364,22 +365,23 @@ def pkg_drumkits(conf):
else:
print("Using prior decision about distribution: %s" % (distribute))
pkg['distribute']=distribute
- if distribute:
+ if distribute or addall:
if(interactive):
print("")
lic=pkg.get('license')
## get a machine-readable license from the user
license=pkg.get('licensed')
- while not license:
- try:
- license=raw_input("What's the machine-readable license ('%s')? " % (pkg.get('license')))
- except EOFError:
- if distribute:
- pass
- else:
- break
- if not license:
- license=lic
+ if not addall:
+ while not license:
+ try:
+ license=raw_input("What's the machine-readable license ('%s')? " % (pkg.get('license')))
+ except EOFError:
+ if distribute:
+ pass
+ else:
+ break
+ if not license:
+ license=lic
pkg['licensed']=license
## make sure we have a sane output filename
@@ -395,7 +397,10 @@ def pkg_drumkits(conf):
print("")
- pkgs = [x for x in avail if x.get('distribute')]
+ if addall:
+ pkgs = avail
+ else:
+ pkgs = [x for x in avail if x.get('distribute')]
write_DrumkitInfo(conf.workdir, avail, 'drumkits')
download=True
if interactive:
@@ -438,7 +443,8 @@ def parseCmdlineArgs():
parser.add_argument('-x', '--non-interactive', action='store_true',
help="don't ask interactive questions (re-create a tarball from all pre-approved items)"
)
-
+ parser.add_argument('--add-all-regardless-of-license', action='store_true',
+ help="DO NOT USE THIS FOR CREATING A TARBALL FOR DEBIAN PACKAGING")
args = parser.parse_args()
return args
--
hydrogen-drumkits packaging
More information about the pkg-multimedia-commits
mailing list