Searched refs:fname (Results 1 - 25 of 27) sorted by relevance

12

/pkg/src/modules/bundle/
H A D__init__.py50 def __init__(self, fname, uid=None, gid=None):
52 self.fname = fname
56 "name (file: {fname})".format(uid=uid, fname=fname))
59 "name (file: {fname})".format(gid=gid, fname=fname))
/pkg/src/util/log-scripts/
H A Dlog.py101 fname = None variable
105 fname = arg variable
109 assert not fname == None
111 lg = open(fname)
H A Dan2_ip_active.py73 fname = retrieve_chart("http://chart.apis.google.com/chart?{0}".format(url), variable
78 <img src=\"{1}\" alt=\"{2}\" /><br />""".format(url, fname, "Active catalog IPs over {0:d} day window".format(ndays))
H A Dan_catalog.py116 fname = retrieve_chart("http://chart.apis.google.com/chart?{0}".format(url, "lang"))
117 print ("<img src=\"{0}\" />".format(fname))
H A Dan_report.py236 fname = retrieve_chart("http://chart.apis.google.com/chart?{0}".format(url), variable
241 <img src=\"{1}\" alt=\"{2}\" /><br />""".format(url, fname, title)
324 fname = retrieve_chart("http://chart.apis.google.com/chart?{0}".format(url), variable
326 msg += """<div id="{0}-{1}"><img src="{2}" alt="{3}" /></div>""".format(title, r, fname, title)
/pkg/src/tests/api/
H A Dt_catalog.py450 for fname in c.signatures:
451 fn = os.path.join(c.meta_root, fname)
455 for fname in c.signatures:
456 os.chmod(os.path.join(c.meta_root, fname), bad_mode)
458 for fname in c.signatures:
459 fn = os.path.join(c.meta_root, fname)
468 for fname in c.signatures:
469 fn = os.path.join(c.meta_root, fname)
473 for fname in c.signatures:
474 os.chmod(os.path.join(c.meta_root, fname), bad_mod
[all...]
/pkg/src/modules/publish/
H A Dtransaction.py311 def __get_elf_attrs(self, action, fname, data):
330 ".temp-{0}".format(fname))
451 fname = hash_val
453 hdata = self.__uploads.get(fname)
460 elf_attrs = self.__get_elf_attrs(action, fname, data)
461 csize, chashes = self.__get_compressed_attrs(fname,
467 fpath = os.path.join(self._tmpdir, fname)
469 fname, data=data, size=size,
472 self.add_file(fpath, basename=fname,
483 fname, dat
[all...]
/pkg/src/tests/cli/
H A Dt_pkg_image_update.py365 def get_test_sum(fname=None):
367 if fname is None:
368 fname = os.path.join(self.get_img_path(),
370 fsum , data = misc.get_data_digest(fname,
384 elf1sum = get_test_sum(fname=os.path.join(self.ro_data_root,
386 elf2sum = get_test_sum(fname=os.path.join(self.ro_data_root,
H A Dt_fix.py323 fname = a.attrs["path"]
324 fpath = os.path.join(self.get_img_path(), fname)
353 fname = a.attrs["path"]
354 fpath = os.path.join(self.get_img_path(), fname)
378 "{fname}".format(
380 actual=actual, fname=fname))
385 "{fname}".format(
387 actual=actual, fname=fname))
[all...]
H A Dt_change_variant.py488 for fname in ("bar", "foo"):
489 self.f_verify("usr/bin/{0}".format(fname), fname,
497 for fname in ("bar", "foo"):
498 self.f_verify("usr/bin/foobar", fname, negate=True)
H A Dt_pkg_mediated.py474 for fname in ("mailq",):
476 "bin", fname)
479 for fname in ("sendmail",):
481 "lib", fname)
/pkg/src/modules/server/
H A Dface.py120 fname = os.path.join(depot.web_root, spath)
121 if not os.path.normpath(fname).startswith(
H A Dtransaction.py488 fname = hash_val
497 ".temp-{0}".format(fname))
531 dst_path = self.rstore.file(fname)
536 if getattr(e, "data", "") != fname:
541 fname, dst_path, data, size, self.dir)
644 fname = None
649 fname = hashes[default_hash_attr]
650 dst_path = self.rstore.file(fname)
655 if getattr(e, "data", "") != fname:
659 misc.compute_compressed_attrs(fname, dst_pat
[all...]
H A Drepository.py789 for fname in os.listdir(pkgpath[0]):
792 pkgpath[0], fname)
802 fname)
1876 hsh = reason.get("fname")
1903 message = _("Missing file: {0}").format(reason["fname"])
1904 del reason["fname"]
1959 attr, fname, hfunc = \
1964 hashes.add((fname, hval, hfunc))
1968 attr, fname, hfunc = \
1977 # fname i
[all...]
/pkg/src/util/publish/
H A Dpkgfmt.py618 for fname in flist:
622 path = os.path.abspath(fname)
624 with open(fname, "r") as f:
634 with open(fname, "r") as f:
644 "manifest in place").format(fname), exitcode=None)
665 mode = os.stat(fname).st_mode
667 os.rename(tname, fname)
H A Dpkgmerge.py554 fname = os.path.join(pkg_tmpdir,
557 fname, "rb")
/pkg/src/
H A Dpull.py1636 fname = None
1640 fname = os.path.join(pkgdir,
1643 a.data = lambda: open(fname,
1651 t.add(a, exact=True, path=fname)
1665 fname = os.path.join(
1668 t.add_file(fname,
1671 t.add_file(fname)
H A Dsetup.py1174 fname, line, col, code = err
1176 line, col or "unknown", fname, code)
/pkg/src/modules/
H A Dp5p.py1237 fobj, fname = self.__mkstemp()
1242 self.add(fname, arcname="pkg5.repository")
H A Dmisc.py695 def compute_compressed_attrs(fname, file_path=None, data=None, size=None,
699 a file in compress_dir named fname. If compress_dir is None, the
742 opath = os.path.join(compress_dir, fname)
1670 os.path.getsize(os.path.join(d, fname))
1672 for fname in fnames
H A Dcatalog.py2382 for fname in os.listdir(self.meta_root):
2383 if not fname.startswith("catalog.") and \
2384 not fname.startswith("update."):
2387 pname = os.path.join(self.meta_root, fname)
/pkg/src/modules/client/
H A Dpublisher.py1808 for fname in os.listdir(opath):
1809 if fname.startswith("catalog.") or \
1810 fname.startswith("update."):
1811 src = os.path.join(opath, fname)
1813 fname)
H A Dimage.py676 fname = os.path.join(self.imgdir, "modified")
679 os.open(fname, os.O_CREAT|os.O_NOFOLLOW,
681 os.utime(fname, None)
3254 for fname in ("actions.stripped", "actions.offsets",
3258 self.__action_cache_dir, fname))
H A Dimageplan.py4099 fname = os.path.join(self.image.imgdir, f)
4100 if path == fname:
4357 fname = attrs.get("original_name",
4361 cons_named[fname] = re
4362 fname = None
/pkg/src/tests/
H A Dpkg5unittest.py3136 def validate_html_file(self, fname, exit=0, comment="",
3138 """ Run a html file specified by fname through a html validator
3143 tfname = fname + ".tmp"
3144 os.rename(fname, tfname)
3146 cmdline = "tidy {0} {1} > {2}".format(moptions, tfname, fname)
3151 cmdline = "tidy {0} {1}".format(options, fname)

Completed in 4022 milliseconds

12